Skip to content

scripting

need to script something ? do it here

  1. Started by Leo,

    Hi all, I am trying to figure out how can i add homepage setting for IE in System Restore process in ZTI. I have done couple of scripts but it added to the Local Machine but not to the current user. However, i also thought that packaging a vbs script (which sets the homepage) and a bat file(which calls the homepage.vbs) in a winrar sfx would help. What i did here is, i made it as an application and call it during the System Restore in ZTI in SMS. Winrar extracts those 2 files in a temp folder in C: Root. But does not change the Homepage. I read it somewhere that using reg.exe can be done. But i didn't find any resource how to do it. Can anyone point me to…

  2. Started by anyweb,

    let's say you need to pull values from the operating system WMI class, in XP you can do as follows:- open a command prompt and try this wmic.exe path win32_BaseBoard get /format:htable > win32_BaseBoard_test.html the above will pull all values for win32_BaseBoard and place the output in a html formatted table which you can view in Internet Explorer (will not display correctly in Firefox). attached is an example output of the above code. cheers anyweb win32_BaseBoard_test.html

  3. Started by king13p,

    Hello, I'm working on a Powershell script to install Autodesk products. I'm having issues with a step and hopefully someone can help. I've tried this many different ways and keep running into errors. Using double quotes (Start-Process "msiexec.exe" -ArgumentList ""/i $dirFiles\ABDS2017\Img\x64\RVT\RVT.msi INSTALLDIR="C:\Program Files\Autodesk\" ADSK_SETUP_EXE=1 /qb!"" -NoNewWindow -Wait -PassThru).ExitCode Error Cannot validate argument on parameter 'ArgumentList' Argument is null or empty. Using a variable to define InstallDir $RevitInstallDir = "C:\Program Files\Autodesk\" (Start-Process "msiexec.exe" -ArgumentList "/i $d…

    • 1 reply
    • 16.9k views
  4. $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
  5. Hey Everyone Hope someone can help with this one. New to powershell but getting by pretty good until now. I need to take the content of about 3000 text files and the content of each text file written to a row in excel. Hope someone might be able to help with this as it is doing my head in.......I'm googled out........ Any help or advise would be much appreciated. Even if someone has done this is VBS would be good. Thanks Brendon.

    • 1 reply
    • 3.3k views
  6. Started by Alejandro Suarez,

    I need help I'm new on SCCM. I need to rename a Hyper V virtual machine. i'm using this settings on customsetting.ini TS fails. task sequence error 0x80220005 when i use laptop or desktop works perfect but fails when deploying Hyper V VM [Settings] Priority=ByLaptop, ByDesktop, ByVM, Default Properties=MyCustomProperty [ByLaptop] subsection=Laptop-%IsLaptop% [Laptop-True] OSDComputerName=LT-%SerialNumber% MachineObjectOU=OU=Laptops,OU=USA,OU=Sites,DC=mydomain,DC=com [ByDesktop] subsection=Desktop-%IsDesktop% [Desktop-True] OSDComputerName=DT-%SerialNumber% MachineObjectOU=OU=Desktops,OU=USA,OU=Sites,DC=mydomain,DC=com [By…

    • 1 reply
    • 3k views
  7. Started by revingtosh,

    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
  8. Started by Xpdite,

    Hi I have been tasked with setting up a compliance rule to check for the existence of a certificate in the trusted root of the corporate Windows 7 Desktops and remediate if possible. I have been having difficulty trying to figure out how to accomplish this. I did find a link suggesting to use a powershell script but I seem to be getting very mixed results. I have included the script below If anyone has any idea's on how I can accomplish this or can point me in the right direction it would be appreciated. This is the script I was trying with out reliable success: $Compliance = 'Non-Compliant' $Check = get-childitem -path cert:\localmachine -recurse | where-obj…

  9. Started by Jimm,

    Good day, I'm preparing a security audit against our numerous SCCM servers. I am currently using a export from within the console to obtain all of the class security rights for each server. I have the SCCM SDK but am not that strong into vbs to be able to determine how I can go about getting the class security from my servers. If someone could get me started, I can take it from there. Jimm

  10. I am looking to automate a prcoess as follows.. Input AD username Retrieve network location of AD User Roaming Profile Retrieve network location of home directory Copy certain items from roaming profile to home directory Delete network roaming profile This is purely so helpdesk staff can delete a profile using a tool rather than having to browse to a server and delete manually... I am guessing I can perform this via VBS but am looking for some pointers, I don't have any vbs experience but a starting point would be nice..! Thanks

  11. Started by Damien,

    Hi, Can some one please tell me an application to create VB script easily? Thanks

  12. Hi, I am looking for a script to copy the Group Membership of one system to another in AD from a system which is not connected to domain, below is the script which i wrote but getting error " Could not find the Name or Insufficient Rights to see Name, at this stage "objTrans.Set ADS_NAME_TYPE_NT4, strDomain & "\" & strComputer2 & "$" " please help Basically what the script does is it will prompt for Old computer name for Source & new computer for destination & it will create a computer account & copy the group membership from source to destination computer. Option Explicit Dim strComputer1, strComputer2, strDomain, strOU, intAnswer, …

  13. Started by anyweb,

    you can edit a batch file (shutdown.bat) and paste the following into it shutdown.exe -s -f -t 5 -c "shutting down the computer now" save the file and you can 'call' it either using Windows Task Manager (start/control panael, scheduled tasks, add scheduled task) the -s in the code above tells shutdown.exe to shut the system down, if you want to reboot the machine change it to -r the -f switch forces running applications to close without warning and the -c displays a comment box to warn the user of the coming shutdown, in addition it adds this info the the eventviewer. the 5 after -t is the number of seconds before the machine is shutdown. cheer…

    • 0 replies
    • 8.6k views
  14. Started by kmercer6,

    We currently have a Powershell script that runs and grabs the security logs from our Domain controllers. We would like to either filter out results from the created .csv file or adjust the script to give us all the data for a certain event ID. The below is a copy of the current Powershell script we use to grab the logs. cls $computer = gc env:computername $mypath = "c:\" $dt=(get-date).AddDays(-1).tostring("MM-dd-yyyy") $obj = New-Object System.Globalization.CultureInfo -ArgumentList "en-US" $before = [DateTime]::Parse((get-date).tostring("MM-dd-yyyy"), $obj) $after = [DateTime]::Parse((get-date).AddDays(-1).tostring("MM-dd-yyyy"), $obj) get-eventlog -logname…

  15. I have written a series on the PowerShell Deployment Toolkit (PDT). However, recently there has been a new addition of a GUI element. Check out the PDT GUI article on my blog here: http://adinermie.wordpress.com/2014/06/14/my-experience-with-the-powershell-deployment-toolkit-pdt-part-4-pdt-gui-for-powershell-deployment-toolkit/ Or check out the beginning of the series here: http://adinermie.wordpress.com/2014/01/26/my-experience-with-the-powershell-deployment-toolkit-pdt-part-1-downloader-ps1/

    • 0 replies
    • 4.2k views

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.