scripting
need to script something ? do it here
124 topics in this forum
-
I need to install Symantec Endpoint Protection, what would the command line be like in powershell where I can call a .ps1 script in a completely hidden and silent way? I did a previous TS that copies the setup64.exe from SEP to "C:\TEMP\" I don't have much knowledge on powerhsell as would the script that would install it silently? the argument for installing it via Batch File is / s. However, the CMD window appears during Windows logon, and Powershell can do all of this without any windows appearing, and I wanted powershell to wait for the installation to finish (I researched this and think the parameter is -WaitProcess but I don't know where how to put it) and…
-
-
- 6 replies
- 12.4k views
- 1 follower
-
-
Hi Guys, I would like to add domain users to be able to log on via RDP to their desktop via script or GPO. Basically, all our desktops are named after the user who uses it. Dersktop=sjobs-xp1, sjobs-ws1 and Username=sjobs Can you guys advise me how can I achieve this? Any scripting ideas on windows? We also just started using SCCM, so anything there can also work.
-
-
- 1 reply
- 6.7k views
-
-
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…
-
- 1 reply
- 5.3k views
-
-
Hi, is there a ADSSecurity.dll for a 64 bit OS? I need to copy, change permissions from folders via vbscript? On 32 it will work, but my os is 64 bit... thanks for any information..
-
- 2 replies
- 6.9k views
-
-
I'm trying to write a simple script that would first check at logon if a user is on our domain and if so, launch a website. This is so that they don't get "Page cannot be displayed" if they are not connected. So far I'm playing with: ipconfig > c:\IP.txt FINDSTR "10.5" c:\IP.txt > C:\Subnet.txt Now how would I use the IF command to check if 10.5 is present in the "Subnet.txt" and if so, launch the site? This is probably very simple but my knowledge of scripts is limited to Google. Thanks!
-
-
- 4 replies
- 9k views
-
-
I'm looking for a smiple batch file or script that will completely uninstall and remove any version of Java. Any suggestions on what to use? Thanks again!
-
-
- 3 replies
- 27.9k views
- 1 follower
-
-
Hello Not sure where to post this so sorry if in worng place Thank you for reading my post. I am brand new to scripting so my apologies if this is rather basic – But everyone starts somewhere. We are running Windows 7 desktop on a 2003 Enterprise domain. I need to copy some short cuts files (eod8 extension) to the start menu under “All Programs” in a folder called “EOD”. The users must be able to save and open the shortcuts (so using the All Users folder did not work since a standard user can’t save to that location) So I am copying the files to the local user profile. My Script setlocal set Installpath=%~dp0 mkdir "C:\Users\%username%\AppData\Roaming\Mi…
-
- 0 replies
- 6.7k views
-
-
Hi Guys, Am not too good with batch script and PowerShell and am trying to amend an existing batch script to do a certain install but I keep getting "system error 55 has occurred" on the network drive path of the line, and also " error code 1605" for the install command part of the script I am trying to find a way to re write the scrip using PowerShell. the main action is to perform an install of an application which upgrades or updates the current application to new version on the local server. I want to re use the same script for other devices too. I hope the above makes some sense.
-
- 5 replies
- 5.8k views
-
-
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.
-
- 1 reply
- 4.1k views
-
-
Hi, In my company, due to security reasons then not installed Microsoft Office application. I want a script for bulk id creation with out excel sheet. if you have any idea on this ,please help me. Thanks in advance. Badri.
-
- 4 replies
- 6.9k views
-
-
We have a system in place that displays a Blank Screen and logo in place whilst loading your network drives and profile. The reason for this is that we simply want to ensure the PC has had enough time to load all the services and applications on your computer prior to giving you your desktop. This system provides that we can have a single logon script set through GPO at the root level of our domain and then INDIVIDUAL mappings per site and country. This guide assumes that you have first setup Windows Server 2008 and configured it for Active Directory. In a production environment please consult Technet for best practise, see below links: Design Active …
-
- 2 replies
- 8.8k views
-
-
Basically what I need is a script that will somehow look at the MAC address (possible through ipconfig /all or sysinfo or something) of the Local Area Network connection (on-board NIC) and change the computer to something like: C:> ipconfig /all IP ........................... 192.168.0.2 Subnet mask............ 255.255.255.0 Default Gateway....... 192.168.0.1 MAC........................ 00-1E-4F-F5-89-66 Add 'US' to the MAC -> US00-1E-4F-F5-89-66 -> Remove the dashes -> US001E4FF58966 Sorry, for dragging out all of that, I just didn't want any misunderstandings about what I was trying to achieve, I'm not great at scripting at all -- I…
-
- 4 replies
- 14.6k views
-
-
Hi, Due to some lost machines on our network, i came up with an ideia...possibly a stupid (or not the best) one My idea was to create a script to run everyday through scheduled task on the client computer. The basic function of the script would be to ping a domain controller to check the presence of the computer on our offices... If the computer cannot ping a domain controller for 4 months (let's say a smart guy took a laptop to "work" at home), it would run an action, (lock computer, delete something, put it in loop, something) to force the user to bring back the computer to out IT team. Any ideas where i should start? Any different approaches? Any suggestion wi…
-
- 0 replies
- 2.6k views
-
-
This may very well overlap a few topics but I have a need for a PS script that I can assign to a Configuration Item and a Configuration Baseline. I have the PS scripts but need advice how to run the script as it fails due to the fact by default CM Clients run at the level of All Signed. I thought I could just add at line 1 Set-ExecutionPolicy ByPass within the remediation script as follows Set-ExecutionPolicy ByPass $MinDays = 14 $UIResourceMgr = New-Object -ComObject UIResource.UIResourceMgr $Cache = $UIResourceMgr.GetCacheInfo() $Cache.GetCacheElements()| where-object {[datetime]$_.LastReferenceTime -lt (get-date).adddays(-$mindays)}| foreach {$Cache…
-
- 0 replies
- 8.1k views
- 1 follower
-
-
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
-
