Jump to content

Search the Community

Showing results for tags 'Script'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Cloud
    • Azure
    • Microsoft Intune
    • Office 365
  • General Stuff
    • General Chat
    • Events
    • Site News
    • Windows News
    • Suggestion box
    • Jobs
  • MDT, SMS, SCCM, Current Branch &Technical Preview
    • How do I ?
    • Microsoft Deployment Toolkit (MDT)
    • Official Forum Supporters
    • SMS 2003
    • Configuration Manager 2007
    • Configuration Manager 2012
    • System Center Configuration Manager (Current Branch)
    • Packaging
    • scripting
    • Endpoint Protection
  • Windows Client
    • how do I ?
    • Windows 10
    • Windows 8
    • Windows 7
    • Windows Vista
    • Windows XP
    • windows screenshots
  • Windows Server
    • Active Directory
    • Microsoft SQL Server
    • System Center Operations Manager
    • KMS
    • Windows Deployment Services
    • NAP
    • Failover Clustering
    • PKI
    • Windows Server 2008
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Hyper V
    • Exchange
    • IIS/apache/web server
    • System Center Data Protection Manager
    • System Center Service Manager
    • System Center App Controller
    • System Center Virtual Machine Manager
    • System Center Orchestrator
    • Lync
    • Application Virtualization
    • Sharepoint
    • WSUS

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 23 results

  1. Hello. There is the following command @echo off setLocal Enabledelayedexpansion for %%d in (c d e f g h i j k l m n o p q r s t u v w x y z) do ( if exist %%d:\"STORE USER ARM"\ ( xcopy %%d:"\User State Migration Tool\*.*" /e /v /y C:\Windows\USMT\ If not exist %%d:\Store Mkdir %%d:\Store c: cd C:\Windows\USMT\Amd64 scanstate.exe %%d:\Store\%ComputerName% /c /o /ue:%OSDCOMPUTERNAME%\* /hardlink /nocompress /i:MigApp.xml /i:MigCustom.xml /i:MigUser.xml /i:MigProgFiles.xml /v:5 /l:%%d:\Store\%ComputerName%\logs\scanstate.log /progress:%%d:\Store\%ComputerName%\logs\sca
  2. Hi, I thought I would advertise my book here as I need all the shout-outs I can get! The book is entitled: ConfigMgr - An Administrator's Guide to Deploying Applications using PowerShell I think it's pretty good, but then again, I'm probably biased. You can get it here: https://leanpub.com/configmgr-DeployUsingPS Sorry about this advert - I hate adverts too. Sometimes, you just...gotta.
  3. Here is script...... Copy-Item "\\fileserver\SCCM\Resources\Laserfiche\Laserfiche.url" -Destination "C:\Users\Public\Desktop" Shortcut never appears.
  4. Hi all, Having an issue re creating our build process in the new SCCM environment i've been building lately. During the deployment of an OS we have two visual basic scripts that run after the OS has been booted into for the first time that add the PC to the correct AD groups and starts the 802.1x service (i know there is probably other ways of doing this but i'd rather replicate than redesign). This works flawlwessly on our current live SCCM but in the new one, which is working with Windows 10 rather than 7, i cannot get it to run during the TS, i just receieve an incorrect function error
  5. Hello to everyone, I'm beginner. The printer server has changed recently. We are using a new printer server. How can I remove the old printer on all clients from SCCM?
  6. I created an application in SCCM, which is initiated by a batch script - it launches MRT security scan - The computer on which I run the application is scanned successfully, the MRT also creates a success log but in the end in Software Center the application is visible as failed. The application is in "installing" state untill the scan is finished, when the actions are finished it fails - it does not time out as the timeout is set to arround 500 minutes. What I thought of is adding "exit /b 0" to give SCCM the "error 0" exit code - unfortunately no success. The batch file has in it:
  7. m trying to write a powershell script that will remove the computer running it from sccm during a task sequence. I have the proper server and site name in but it always returns a null resID during the task sequence but when i change it to be used in a normal powershell script in the ise it works just fine. I have the computer name saved as a task sequence variable OSDComputerName earlier in the task sequence. Can anyone help me out? $SCCMServer = 'SERVER' $sitename = 'SITE' $tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment $computername=$Tsenv.value("OSDComputerName") $resID =
  8. Hello, Would anybody be able to assist me with instructions on how I can distribute a folder to "Users, Public, Public Desktop" I would like to add this to a functional existing task sequence, but I'm lacking the knowledge to do so. Any assistance from the users of this awesome forum would be GREATLY appreciated.
  9. We are a full windows shop with Dell computers. We use GPO and a login script to map printers for specific pc's. Recently we have had more and more domain pc's installing printers that are not even in the area of this pc. The pc or user are not members of the group that should get these printers. We have checked all the GPO's we can think of, but it seems like everyday there is another pc getting these printers installed. Does anyone have an idea of what is happening here? Here is an example of the script that we are running. Option Explicit dim WshNetwork Sub printers Set WshNetwor
  10. The script below will tell me the uptime on PC's. I want to add the language that says if Uptime is greater than X amount of days then it will send a reboot in 15 Mins. Any help would be appreciated. # This PS script provides Uptime and Pingstatus for list of computers. ####################################################################### $names = Get-Content "C:\Test\computers.txt" @( foreach ($name in $names) { if ( Test-Connection -ComputerName $name -Count 1 -ErrorAction SilentlyContinue ) { $wmi = gwmi Win32_Ope
  11. Just wrote a basic script for importing PST files into mailboxes, that I want to share with the community. It is designed to check for PST files in the specified folder. Based on the filenames (of the PST files) it then verifies that a mailbox can be found. This is done by using the filename and adding the @ character and the domain value into a string value. If there is a match, it returns a value of $True and the script continues with running the New-MailboxImportRequest cmdlet. The script is written just as basic as it can, it provides much information about values and what’s going on.
  12. Hey Guys!!! I apologise in advance if this is a stupid question, I'm quite new to this stuff so please go easy on me I have been given the task of rolling out a software upgrade for a piece of company software. Basically what needs to happen is (in this order): 1. Install a file from an MSI ( I have been given the MSI file which is in the SMS server package store ) 2. Run this script "C:\Windows\System32>MsiExec.exe /x {205CFDD2-34CF-4141-93AA-55FCDB7BB012} /q" (uninstalls the old one) 3. Run this RegKey file "regedit.exe /s \\aumxxxxxxxxx\smspkgg$\xxxxxxxx\settings.reg"
  13. I am working on a task within an OS build process to disable the previous computer object in AD. Within my OSD task I have the option to change the system name. When the name is changed I set a variable to trigger a script to disable the object within the full OS portion of the task sequence. (The task is setup after the ConfigMgr agent is installed.) Because, the local system does not have access to AD I need to use a service account to disable the object. No matter how I run the script I get an error code 1 from the return of the script. I have triple checked the password and the a
  14. Hi! I'm having some issues with a .vbscript made for renaming computer during a task sequence. The issue is that it works for renaming virtual machines, but also a physical HP, the way it's supposed to (name of choosing + last 6 digits of serialnumber). However it fails on a customers physical Lenovo machine. The Lenovo machine sets the first part of name correctly, but completely ignores the fact that it's supposed to cut the serialnumber to the last 6 digits, meaning sometimes the machinename goes above 15 characters. The vbscript is run right after formating the disk, as seen on this pi
  15. Anyone know of an easy way to name a computer to its serial number during OSD? I have a vbs script that I used under Altiris but how/where would I inject this script during OSD?
  16. Need help building one PowerShell script to run on Windows XP and Windows 7 If possible. I need the script to perform the following functions. Remove all temp files for all users Empty Recycle Bin for all users Empty Temp Direrctory Empty Temp Internet Files for all users Delete User Profile's 90+ days inactive Run Check Disk Clean up tool at the end. I have attached a script that was given to me but needs to modified for XP I think and add other items listed above. Disk_Cleaup_Tool.txt
  17. Hi all, Im using SCCM 2012 to do OSD for Windows XP SP3. Everthing is working fine but I want one more thing to go smooth. We are going to migrate a big school to Windows+RES. No problem with the OSD Image. The only problem is that some workstation got a bad computer name in the past. So some computer have the name of another classroom. We dont want to use the usual script for name changing. See: http://blogs.catapultsystems.com/javery/archive/2009/01/23/have-os-deployment-ask-for-a-computer-name.aspx?id=4&list=0e95ea6f-f4f7-41dd-8344-6968d75ff93a&itemid=4 When we use this one we
  18. Hello, I know the commands to set paging file (wmic pagefileset) but what I need is a script that will query the amount of physically installed memory first and then multiply it by 1.5x. Does anyone have a script that I can use please? Or know of an easy way to do this? We like to create partitions and move the page file to the D drive and leave the C drive a just 800MB. I am deploying to W2k8 R2 servers. Many Thanks Craig
  19. Hey guys, Lately I've been setting up a back-end script for one of our customers. Part of this script was designed to send an email to the manager with the user and password for their newly created users. I posted the Email function on the tech-blog if anyone needs it. http://heineborn.com/tech/sending-email-via-powershell/ Take care.
  20. Howdy, I am wondering if anybody has ever come across a script that I can use to import new machine information (Computer Name and Mac) listed in a CSV file into SCCM 2007. I know that you can quite easily perform this via the console, however I would like to script this action so that that the csv file supplied to us by our hardware reseller can be dumped into a share by our Procurement team and automatically imported as a scheduled task. I have been seatching high and low and have found a few tools that can achive this (Anyweb's front end HTA included) but am really just after a scri
  21. Here is my issue. Our image was built with a MAK key for Office 2010. Since I didn't build the images, I payed no attention to this. Well after imaging over 1000 machines, we've figured out that we need to use a KMS host for Office activation as our MAK keys are running over. I've already installed the Office KMS host on a machine that currently activates our Server 2008 R2 boxes, the problem is how to change all the machines that have been imaged that won't activate over to the KMS host so they will activate. I know we will need to redo the image to input the KMS key but how ca
  22. Hi We're currently using SCCM 2007, and for the most part I'm administering it. However, I have very little no knowledge in regards of scripting, and I see it would be a huge advantage when deploying all kinds of software. I get by, by finding scripts online and testing and trying to manipulate as best as I can. Now I'm planing to learn some scripting language, but not sure what language would be most suitable. Most people seem to use javascripts, but powershell seems to be far more powerful. Is there any reason to learn Javascript now instead of powershell ? We are only using w
  23. Hi everyone, We currently have over 1000 objects in AD which should all have a healthy SCCM client, but due to the PC's not being turned on all the time the client becomes corrupt for some reason. I beleive the most efficient way to fix those PC's on the network that have SCCM issues is to have a script read from a computers.txt list, which contains all the corrupted computers, and have the script grab that name from the computers.txt list and let the script run a ccmsetup.exe on that remote PC using PSEXEC. We currently use site code AP0 and have the ccmsetup.exe file. ANY SUG
  • Create New...