Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Beginner Question - Spaces in User Names

$
0
0

I need to write a script like this -

New-SmbShare -Name Xfer -Path c:\Users\Xfer -FullAccess Administrators -ReadAccess Users

- but instead of Administrators I need to use "Domain Admins" and instead of Users I need to use "Domain Users".  How do I do it? I have looked everywhere.


Viewing all articles
Browse latest Browse all 6937

Trending Articles