In the technet article I ran into a problem pretty much right away.
https://technet.microsoft.com/en-us/itpro/windows/deploy/prepare-for-windows-deployment-with-mdt-2013
When creating the share, it wants you to powershell it with the following commands:
New-Item -Path E:\Logs -ItemType directory
New-SmbShare ?Name Logs$ ?Path E:\Logs -ChangeAccess EVERYONE
icacls E:\Logs /grant '"MDT_BA":(OI)(CI)(M)'
That second one doesn't work... unless you replace the ? with a -
New-SmbShare -Name Logs$ -Path E:\Logs -ChangeAccess EVERYONE
Then it creates it correctly.
Hope this helps, I'm new at powershell and this was incredibly frustrating.
Subscribe to:
Post Comments (Atom)
Pulling local admin accounts on a windows system WITH POWERSHELL
There’s a couple ways to get them, I’m sure you’ve been around the internet looking. The Powershell scripts I use: Get-LocalGroupMember -Gr...
-
Situation: Vizio sound bar works. But all of a sudden, no sound. The movie is playing fine, but no sound. On the sound bar itself, two ind...
-
I have a customer that would like 3 monitors, for whatever reason. The Dell 9020 is capable of this, and this is how I got it to work. No ...
No comments:
Post a Comment