Skip to content

scripting

need to script something ? do it here

  1. 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.4k views
  2. Started by anyweb,

    Dr. Tobias Weltner, a PowerShell MVP has written an excellent eBook about PowerShell. Dr. Tobias Weltner has written many books for Microsoft Press on Windows and scripting techniques so he is a real professional and knows his stuff inside and out. Big surprise: the eBook is FREE! For every one who wants to know more about PowerShell, this is a great opportunity. Go get it NOW from here. via > http://thoughtsonopsmgr.blogspot.com/2010/09/free-ebook-mastering-powershell.html?utm_source=twitterfeed&utm_medium=twitter

    • 2 replies
    • 7.7k views
  3. Here is script...... Copy-Item "\\fileserver\SCCM\Resources\Laserfiche\Laserfiche.url" -Destination "C:\Users\Public\Desktop" Shortcut never appears.

  4. Started by petebuk,

    Hello all, I am new to scripting an need to implement a script to run at log in to add a local administrator account cewadmin and set a password. Any ideas?

  5. 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
  6. 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
  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. Afternoon all, I am trying to setup a simple script that will determine if Drive E: exists and if so is it a CD Rom drive. Then based on that info run install command line. The if else logic seems to work but I'm having a hard time getting the install cmd to run. Any help would be greatly appreciated, I'm also open to other ways of doing this. Exit code btw is 1622. Cheers, Mike $instdir = Get-WmiObject -Class Win32_LogicalDisk | Where-Object {$_.DeviceID -eq "E:"} If (!($instdir)){ $process = start-process -filepath "setup.exe" -argumentlist '/s /v"/l*voicewarmup \"%temp%\besclientinstall.log\" INSTALLDIR=\"C:\Program Files (x86)\BigFix Enterprise\…

    • 3 replies
    • 7.5k views
  9. 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, whereas if i run the script manually on the Windows 10 machine it works as exp…

  10. I'm trying to run a script against my computers with SCCM. It's a very simple powershell script (it has to be, I'm not much of a scripter), and it works perfectly from the command line. However, when I try to deploy it from SCCM it fails every time. I've tried writing directly to the share, I've tried mapping a drive, I've tried deploying it with admin rights and using the logged in user's rights. I'm hoping someone here can tell me what I'm doing wrong. The script is below. I know it works, but I don't know why I can't deploy it. # Write the value of the AutoAdminLogon key to $val $val = Get-ItemProperty -Path "hklm:\SOFTWARE\Microsoft\Windows…

  11. After the earlier version of office is installed, it has a gray status that cannot be modified. I want to create a desktop shortcut to prevent users from modifying information like this. How should I create a desktop shortcut with PowerShell, and the target and starting position are in a gray status that cannot be modified?

    • 0 replies
    • 4.3k views
  12. 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.

    • 0 replies
    • 6.1k views
  13. 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…

  14. 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

  15. 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

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.