Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

Powershell script to gather failed logon attempts by event id and type from...

I need to export the information from the Failed logins within the Domain Controller Security events log. I need to then export it into an excel spreadsheet. Anyone know where to start and should I be...

View Article


How to run .exe using batchfile?

I would like to know on how to run .exe using batchfile and I try following code without luck.Start /d "C:\Temp\ABC.exe"Does anyone have any suggestions? Thanks in advance for any suggestionsThanks in...

View Article


How do i create a directory in powershell

How do i create a directory in power shell

View Article

Image may be NSFW.
Clik here to view.

Leveraging secure credentials to run an executable in a powershell script

I am trying to replace a batch file that runs an automated upload process with a PowerShell script that provides better security. Currently, the executable in the batch file is run with credentials...

View Article

Download links with Parsed info

Good evening,For a class assignment, we are required to be able to download a link that will change over time as the software is updated. So this means we cannot hardcode the link into the PowerShell...

View Article


Quick Proxy Switching.

Hi Team, Is there any way to switch proxy on windows 10 & 7 machine by creating any batch files, script or plugin.  since my organization are on different locations which use different proxies. Can...

View Article

Removing Leading spaces from Folder Names

I have a bunch of folder many layers deep many of which have a leading space in the name - ask a mac user why they would do this cos I don't know.Anyway I need to get rid of the leading spaces so I...

View Article

Script deleting file it should not.

We have a script that runs on one of our servers and it copies files and folders from another server. Once the copy is complete it deletes files off of the server the files and folders are copied from....

View Article


Script - Capture User Profile, uses User Profile to Identifies what inputs to...

i am trying to create a script that will automatically open up internet explorer to this...

View Article


Start program automatically on logon

Hello, I have written a script to start a program automatically when a user logs in. I am using Remote Desktop Services and i want to open automatically the program whenever a user logs in.Currently...

View Article

Powershell script to TRIM excel entire column

Hi Guys ,I am facing issue to trim the entire excel column using powershell .Below code I have used but it replace the entire cell value on search of space.I am avoiding the use of loops. Please...

View Article

Scripting Guys: I am looking for a PS script to read a text file which has...

Hi,Really fed up with a manual work and concentrating to automate my work. Your help needed :) .Summary:We have some commands which we are executing one by one on PowerShell. The command is like...

View Article

Windows 10 Toast notification - image not working

Hello I'm trying to create toast notification with image inline using PowerShellbased on script I found on TechNet gallery I'm executing something like this:$app =...

View Article


Turn on Bitlocker after drive is encrypted via script

The story goes:Offline build from SCCM Offline Key - drive is encrypted but Bitlocker is not turned on.My script is sort of doing the job but I am having trouble with the  $?  command.It is accepting...

View Article

Store the PSSession for later use

Hey Everyone,I'm trying to do operations on a Windows machine remotely via Python by internally using PS Remoting.Currently, I'm launching separate PowerShell processes from Python, and passing them...

View Article


Dynamic Variable Names

Looking to create a script intended to run for extended period of time and track data for individual users.$WatchList contains an array of SamAccountNamesForEach($Person in $WatchList) {$A = Get-ADUser...

View Article

How to get my script to append the values in the CSV file for a value that is...

I have been trying to get a simple script together to import details of various teams from a master file and then user their samaccountname to query AD for further details. However, some of the...

View Article


Powershell combining get-aduser and get-adcomputer

Hi,I have a script with read-host to find users in AD, but i want to change it so it shows more information about the user and the computername he or she works with.What i like to do is:1: search with...

View Article

Importing printers from a CSV

Trying to import and install a list of printers from a csv but not having any luck$Printers = Import-Csv D:\printers.csvforeach ($printer in $printers) {Add-Printer -ConnectionName}and I...

View Article

Test network port

I have used the following code to determine if a port is open on a server.  It seems the same error is returned whether the port is not opened on a server or is being blocked by a network firewall.  Is...

View Article
Browsing all 15028 articles
Browse latest View live