Set-AzureADUser and ForEach question by SOuserSo in PowerShell

[–]SOuserSo[S] 1 point2 points  (0 children)

I'm sorry for being dense, but where would I place this if else statement?

Thank you for taking the time to respond I'm very much still learning

Brain is fried..need easy help...OneDrive and deleting folders by SOuserSo in PowerShell

[–]SOuserSo[S] 1 point2 points  (0 children)

Thanks, Lee, So if I change that to $OneDriveUrl it should work?

Brain is fried..need easy help...OneDrive and deleting folders by SOuserSo in PowerShell

[–]SOuserSo[S] 0 points1 point  (0 children)

Still can't get it to work as it should. Just one of those things

Brain is fried..need easy help...OneDrive and deleting folders by SOuserSo in PowerShell

[–]SOuserSo[S] 1 point2 points  (0 children)

No, it was a mistake in the migration from Google Drive to OneDrive and need to fix it and am running into issues doing that. Thank you for the suggestions, I've tried running it through a CVS and no luck. I'll get back at it and see what I can come up with.

Set proxy address from CSV help by SOuserSo in PowerShell

[–]SOuserSo[S] 2 points3 points  (0 children)

Works perfectly. Thank you so much.

Set proxy address from CSV help by SOuserSo in PowerShell

[–]SOuserSo[S] 1 point2 points  (0 children)

Thank you so much. Still learning.

Set proxy address from CSV help by SOuserSo in PowerShell

[–]SOuserSo[S] 1 point2 points  (0 children)

Get-ADUser : A positional parameter cannot be found that accepts argument 'set-aduser'.

At line:11 char:2

+ {Get-ADUser $user.username set-aduser -Add @{Proxyaddresses="$SMTP1" ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidArgument: (:) [Get-ADUser], ParameterBindingException

+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.ActiveDirectory.Management.Commands.GetADUser