- Proposed as answer by Niko.ChengMicrosoft contingent staff 23 hours 34 minutes ago
- Proposed as answer by Niko.ChengMicrosoft contingent staff Monday, August 10, 2015 7:49 AM
- Proposed as answer by Niko.ChengMicrosoft contingent staff Monday, August 10, 2015 7:49 AM
guys,
when using the following simple code in ISE
New-SmbShare -name setup -path C:\setup
i get an acces denied.
New-SmbShare : Access is denied.
At line:1 char:1
+ New-SmbShare -name setup -path C:\setup
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (MSFT_SMBShare:ROOT/Microsoft/Windows/SMB/MSFT_SMBShare) [New-SmbShare], CimException
+ FullyQualifiedErrorId : Windows System Error 5,New-SmbShare
i am a local admin and uac is disabled.
anyone with the golden sollution?
thanks in advance.
many thanks for the reply, that doesnt sound logical to me. Uac is disabled and am the local admin.
Whats different when running "as administrator" ?
runnins as admin still gives me the following error:
WARNING: Oupps, you need to run this script from an elevated PowerShell prompt!
Please start the PowerShell prompt as an Administrator and re-run the script.
WARNING: Aborting script
tried powershell x32, powershell ise and powershell x32 ise
You were not running powershell as admin. Did your powershell windows say "administrator"?
nope, it doesn't. noticed that running as administrator doesn't work.
i created a shortcut and enabled the 'run as admin' option and now it works.
thanks for the help.