scripting
need to script something ? do it here
124 topics in this forum
-
Hello. I am looking for a way in my OSD deployments to prompt for partition sizes of disks other than the system drive, and to use the input to create and format those drives. Any one done this already? Thanks!
-
- 0 replies
- 3.8k views
-
-
On the page it reports various powershell scripts under the download section at the bottom of the guide, I'am unable to locate them could you please inform where they're are Thanks
-
- 3 replies
- 3.8k views
- 2 followers
-
-
Hello! I'm going to need some help here! I have a task from client to do some cleanup for their W2008 fileserver. I'm asked to move all files and folders older than 3 years (modified by). But This need to be done so that folder structure itself remains same even for the files and folders that are being moved. Idea is that when some random user asks to get some 5 year old picture from folder X we can find it easily. This task needs to be done so that ALL files older than 3 years are moved. Even if they are located in folder where is lots of newer files AND folder structure will be same where files will be moved. Is there anybody who can help me? Thank you! …
-
- 1 reply
- 3.7k views
- 1 follower
-
-
Hello all I am trying to learn all I can about SCCM for future employment however at this time I have no access to push patches using it. From time to time I am asked to patch multiple system and doing them one by one is a pain. I have been unable to find anything which was helpful and had some type of logging for patches so I punched this up. Eventually I will be expanding on it and will have some error control when the execution of the script fails but I am still working on that. If anyone has some input on it please let me know. Until then enjoy and I hope it helps you out. RemInstall.zip
-
- 0 replies
- 3.6k views
-
-
Hi all, To do some reporting around app deployment for our classrooms, I'm WMI-querying class SMS_AppDeploymentAssetDetails. Unfortunately, it returns multiple records per device. Does anyone know how get back only the most recent record of a device? Thank you in advance! Regars, Sven
-
- 2 replies
- 3.6k views
- 1 follower
-
-
Hi, my intention is to copy 2 files into a folder, where only the admin own full permissions. Normal user have only read permissions. The destination directory is: C:\Program Files\Java\jdk1.8.0_45\jre\lib\security The new two files are: jocal_policy.jar and us_export_policy.jar i have to overwrite two files in destination folder, because they are to old. (or first, i delete the old two files and then copy the new two files) Here is my Batchfile, but i dont understand why nothing changes, if i send the batch file to a client: del "C:\Program Files\Java\jdk1.8.0_45\jre\lib\security\*.jar" copy %~dp0local_policy.jar "C:\Program Files\Java\jdk1.8.0_45\jr…
-
- 0 replies
- 3.6k views
-
-
scirpt.txt Hi Difficult issue if there is anyone out there that can solve? We are looking for a solution to find why user ID roaming profiles are always corrupting for different users. Simply refreshing user ID roaming profiles via attached script is a temporary fix and doesnt answer why the user ID's corrupt in the first place Background points We have a large user base 6000+ and seperated user personal SAN storage space F drive from their roaming profile within a Vista client environment. Basically getting a range of issues whereby user IDs become corrupt with a number of bespoke applications. There are hundreds of requests to refresh a user ID via t…
-
-
- 1 reply
- 3.6k views
- 1 follower
-
-
Hello: I am trying to reaquaint myself with VBScripting and I need to write a script that will CALL several applications one after the other and install them as I run the script. Can anyone put me on the right track here? Thank you
-
- 1 reply
- 3.6k views
-
-
$a = "C:\Program Files (x86)\Google\Chrome\Application\80.0.3987.149\Installer\setup.exe --uninstall --system-level --verbose-logging" $a -replace '([^\\]*)$' Suppose my condition is like this How do I extract the desired folder name $b = $a -replace '([^\\]*)$' $b = google or $b =chrome or $b = Application
-
- 1 reply
- 3.6k views
-
-
Trying to find out how to add Active Directory Groups (ex: Client Support, Eng Team) to local computer groups (ex: Administratiors). I need to add multiple AD Groups to differnt local computer groups (Administrators, Remote Desktop). Can anyone help?
-
- 2 replies
- 3.6k views
- 1 follower
-
-
In a command-prompt windows just type: "WMIC ComputerSystem GET Model" I had to use this several times to know exactly which computer model I had
-
- 0 replies
- 3.6k views
-
-
Hello Folks, I'm new to this forum. I believe that this is right place to post my query here. Here is problem with SCCM. I wrote a script that copy file from desktop to shared location. the script works perfectly fine when I run as administrator. Created package \ application for this script and deployed to my test machine. but It doesn't do anything while installing from my test machine even though I checked run with admin's right in SCCM. FYI: Method 2: Created bat file that calls my power shell script. No luck yet all! Method 3: Run the Powershell script by using coomand line i.e Powershell -ExecutionPolicy -Bypass -file "fi…
-
- 1 reply
- 3.6k views
- 2 followers
-
-
I am a powershell noob so I am hoping someone can point me in the right direction. I have many different task sequences as part of an XP to Windows 7 migration and when I run across a model of PC that we didn't know we had I have to manually add the new driver package to all those existing task sequences. Anyone know of some usefull powershell commands that would add the new driver package into any existing task sequences?
-
- 2 replies
- 3.5k views
-
-
Hi, Ive got a GPO which I need to apply to all laptops running Windows 7. I have therefore written a query which should detect if there is a battery installed AND has Win 7 installed. SELECT * FROM Win32_Battery and SELECT * FROM Win32_OperatingSystem WHERE Version = "6.1%" and ProductType = "1" However, the DC is rejecting this syntax. Where am I going wrong? Is it not possible to combine WMI querys in this way?
-
- 1 reply
- 3.4k views
-
-
When you run scheduled jobs in MS SQL you sometimes want to output the results to a txt file. This works like a charm... However MS tends to add four annoying rows to the top of this output file. I thought it was easy to remove these rows with a simple vbs/batch command....but No!! Since it´s unicode format it gets a bit harder... here is the code i ended up using: 'Written by wmmayms 13/12 - 2010 Option Explicit strTextFile = "<----ADD PATH TO YOUR TXT FILE HERE---->" Dim objFSO, objFile , strTextFile, strData, strLine, arrLines, i CONST ForReading = 1 CONST ForWriting = 2 'Create a File System Object Set objFSO = CreateObject("Scriptin…
-
- 0 replies
- 3.4k views
-
