-
Posts
9181 -
Joined
-
Last visited
-
Days Won
366
Everything posted by anyweb
-
below is the updated script which now includes a function to drop the network share drive letter if not needed/used ' windows-noob.com (c) niall@windows-noob.com 2014/4/14. ' This script allows you to selectively run a hidden prestart command based on previous actions. ' In addition, it will list all DeploymentId's found in a file called DeploymentIDs.txt located on a UNC share ' see http://www.windows-noob.com/forums/index.php?/topic/4045-system-center-2012-configuration-manager-guides/ for details ' updated 2015-1-8 to add network share disconnect functionality ' Option Explicit DIM fso, WshNetwork, strUser, strPassword, clDrives, i, objFileToRead, strFileText Set fso = CreateObject("Scripting.FileSystemObject") Set WshNetwork = WScript.CreateObject("WScript.Network") strUser = "HiddenList" strPassword = "Password123" 'Map network drive WshNetwork.MapNetworkDrive "Z:", "\\192.168.1.2\hidden$", , strUser, strPassword 'Check if Devel Mode was selected If (fso.FileExists("x:\hidden.txt")) Then 'WScript.Echo("hidden.txt file exists, devel mode selected!") ' Now check to see if DeploymentIDs.txt file exists, this file is used so that we can display what deployment ID's are available in the prestart prompt If (fso.FileExists("z:\DeploymentIDs.txt")) Then 'Found the DeploymentIDs.txt file, read it's contents into a variable Set objFileToRead = CreateObject("Scripting.FileSystemObject").OpenTextFile("z:\DeploymentIDs.txt",1) strFileText = objFileToRead.ReadAll() 'InputBox ("The following hidden DeploymentID's are available. Please enter the Task Sequence Deployment ID:-" & vbCrLf & vbCrLf & strFileText) objFileToRead.Close Set objFileToRead = Nothing 'WScript.Quit() else 'msgbox "could not find DeploymentIDs.txt, please select manually" End If ' Devel mode was selected so display the Prestart prompt Dim env set env = CreateObject("Microsoft.SMS.TSEnvironment") env("SMSTSPreferredAdvertID") = InputBox ("The following hidden DeploymentID's are available." & vbCrLf & vbCrLf & strFileText & vbCrLf & vbCrLf & "Please enter the Task Sequence Deployment ID eg: P0120038 and click [OK] or click [Cancel] to continue.") 'MsgBox "The following Task Sequence Advertisement ID will be selected: " & env("SMSTSPreferredAdvertID") Disconnect() Else 'WScript.Echo("The hidden.txt File does not exist so will not change SMSTSPreferredAdvertID!") Disconnect() End If Function Disconnect() 'Disconnect ALL mapped drives Set clDrives = WshNetwork.EnumNetworkDrives For i = 0 to clDrives.Count -1 Step 2 WSHNetwork.RemoveNetworkDrive clDrives.Item(i), True, True Next End Function WScript.Quit()
-
Using Powershell to apply Task Sequence variables
anyweb replied to AaronBISSELL's topic in Configuration Manager 2012
based on your log above it doesnt understand the cmdlets Set-ADComputer when you run scripts in the task sequence they are running as System,. you should test manually running the script using psexec as system as described here basically psexec –s –i. http://blogs.technet.com/b/askds/archive/2008/10/22/getting-a-cmd-prompt-as-system-in-windows-vista-and-windows-server-2008.aspx http://windowsitpro.com/systems-management/psexec lastly, what you are trying to do must happen after the “Setup Windows & ConfigMgr” step, so that the computer is restarted after it is joined to the domain. The account which executes the script must have permissions in the AD to set the AD Description, Jorgen blogged about this using a vbs here- 7 replies
-
- SCCM 2012
- PowerShell
-
(and 3 more)
Tagged with:
-
Microsoft's head of Windows Insider program, Gabriel Aul, has confirmed that Windows 10 will require a fresh install on Windows devices older than Windows 7. Revealed in a reply from his Twitter account, Aul wrote that there won't be any full upgrade paths as these will be solely available for Windows 7 and Windows 8.1 users. It makes sense given that some of them might be on older filesystems (e.g. FAT32). That's also assuming that Windows 10 will run on these systems, which although they may have enough resources (RAM/CPU) to power Microsoft's newest OS, may well run into compatibility issues with legacy components/peripherals (rather than software). Upgrade pathThat said, you can upgrade Windows XP to Windows 10 (Technical Preview) and still keep some (if not all) of your applications and settings in place. You will need to adhere to three rules (same bit and language versions) and have access to older Windows ISOs. Microsoft is set to reveal more details about Windows 10 at an event scheduled on January 21 at its campus in Redmond. There's even talk of an updated version of Office for Mobile being announced there. via Techradar > http://www.techradar.com/us/news/software/operating-systems/windows-7-and-8-1-pcs-will-get-direct-upgrade-to-windows-10-1278884?src=windows-noob.com
-
- 1
-
Using Powershell to apply Task Sequence variables
anyweb replied to AaronBISSELL's topic in Configuration Manager 2012
first tip would be what is logged in your smsts.log for the install software step, can you include that here ?- 7 replies
-
- SCCM 2012
- PowerShell
-
(and 3 more)
Tagged with:
-
no it does a special format called a WIPE where it removes everything on the hard drive except the data you want to save (via custom XML rules), that data is then saved in a special folder (statestore) and the task sequence then installs Windows on on the wiped drive, when done it restores the files that were hard linked back to their original place here's an example custom xml file for doing just that http://www.niallbrady.com/2012/08/16/migrate-me-to-windows-8/
-
SCCM 2012 R2 - Windows ISO Image Creation
anyweb replied to Muhammad's question in Windows System Image Manager (WSIM)
didn't you see this ? http://www.windows-noob.com/forums/index.php?/topic/6353-using-system-center-2012-configuration-manager-part-7-build-and-capture-windows-7-x64-sp1/ -
have you seen this yet ? 100 guides for Configuration Manager 2012 and plenty for R2 http://www.windows-noob.com/forums/index.php?/topic/4045-system-center-2012-configuration-manager-step-by-step-guides/ here's one for installing R2 itself CM12 in a Lab - How can I install System Center 2012 R2 Configuration Manager ?
-
the guides below should give you some ideas CM12 in a Lab - How can I add a PXE enabled Distribution Point on Server 2008 X86 for System Center 2012 Configuration Manager ? CM12 in a Lab - How can I setup a Distribution Point on a Windows 7 PC in Configuration Manager 2012 ?
-
it's possible but would have to be done as part of your deploy task sequence simply recreate the winre area in the recovery partition by copying the winre.wim file from the c:\windows\system32\Recovery folder... to accomplish this do: set recovery partition letter in diskpart (for example Q) Robocopy.exe C:\Windows\System32\Recovery\ Q:\Recovery\WindowsRE\ Winre.wim /copyall /dcopy:t reagentc /setreimage /path Q:\Recovery\WindowsRE reagentc /enable go back in disk part and remove the drive letter set before then confirm it works with: reagentc /info in addition to the above you'll need to store your custom.wim file (the osd image) handy
-
can you please explain what you did to solve it to help others in the same situation in the future ? cheers niall
-
Bitlocker failing - previously working
anyweb replied to Spaghetti's topic in Configuration Manager 2012
nope it's missing the step, it only showed the parsing Enabling BitLocker step, that isn't actually the step running, either increase your logging capability or find the correct log, see this post for how to do that. -
Bitlocker failing - previously working
anyweb replied to Spaghetti's topic in Configuration Manager 2012
can you attach the smsts*.log files so we can see if it has actually logged the Enable BitLocker step and determine it's success (or failure) -
i've not tried it but i'm sure it's doable, i've also not heard of anyone doing it so yes perhaps you should suggest a standard refresh as I've explained in the post below (which retains all data but reinstalls the os) CM12 in a Lab - How can I reinstall BitLockered UEFI computers using network boot and System Center 2012 R2 Configuration Manager ?
-
Image broke after Schedule Updates SCCM2012R2
anyweb replied to joengelhart's topic in Configuration Manager 2012
are you following the guide I wrote ? http://www.windows-noob.com/forums/index.php?/topic/4683-using-sccm-2012-rc-in-a-lab-part-12-updating-an-operating-system-image-using-offline-servicing/ -
Bitlocker failing - previously working
anyweb replied to Spaghetti's topic in Configuration Manager 2012
has someone changed the disk partitioning steps in the task sequence, you need a BDE Drive in addition to the OSDisk -
select the task sequence node in the Configuration Manager console, click on Create Task Sequence Media at the top ribbon, and select Boot Media, make sure to select a 64bit boot wim, and follow the rest of the wizard, to see how to boot a suface pro 3 review my videos here. Note that for USB boot, you will need some kind of USB hub to connect both the usb bootable media and your use network card at the same time (or use the Surface Pro 3 docking station)
-
SCCM 2012 R2 - Refresh scenario from Windows 7 to Windows 7
anyweb replied to Tof006's question in How do I ?
the path to those logs will be revealed in the SMSTS*.log files, check them out or attach them here for us to review -
yes the above guide does help with capturing images but does involve manual steps, in practise it's best to automate things as much as possible by using a fully customized build and capture task sequence