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

VBS - Having issues trying to delete duplicate UEFI firmware objects in...

We've been using SCCM 2012 R2 to test deployments of Window 8.1 to UEFI-enabled Lenovo laptops. We found that when you image these laptops over and over again a new "Windows Boot Manager" entry is...

View Article


Microsoft Account Logon with PowerShell

Hello, Everyone.I've been doing some research (purely academic) and haven't found a solution yet. I'm hoping someone can point me in the direction of some reference documentation or... something.I...

View Article


Script track

Hello,I have several questions about Windows scripts, sorry but this technology is new for me:1. How to know if somenone has executed a remote wmi script against a computer, I mean, what kind of logs...

View Article

Script Broken

I have been running the following for almost a year and suddenly it stopped work.  Any help would be great.  It is used partly to extract Exchange 2010 migration logs.the file templist.txt is just a...

View Article

Sort oddity when array is initialized via Get-Content vs inline

Create data.txt via Notepad containing three lines:ABCZ ABC_ ABCASaved as ANSI.Get-Content -Encoding Byte data.txt 65 66 67 90 13 10 65 66 67 95 13 10 65 66 67 65 13 10 $a = Get-Content data.txt $b =...

View Article


Trying to add a value to REG_NONE in the Registry

I'm trying to add a value to the Windows Registry with key type of REG_NONE. I looked here, among other places, and it was no help:...

View Article

Unable to set NTFS permissions on share using PowerShell. The user shows up...

I am having a little problem here with setting NTFS permissions via PowerShell. Basically I am able to make a new directory on the share, and assign a user NTFS permissions however it just assigns the...

View Article

Filter Script for a table (Pokemon Explanation)

I don't know how to script, but I'm looking someone who could help me with the script/code to have for instance:A tablet with the list of pokemon, and one of the colums is Movements and it says "Click...

View Article


Moving Folders base on their names using powershell

Hi there, I've reading some examples here which are not exactly what I need so I've been trying to adapt them with no luck. Sorry not a programmer here, but I need this done and don't know where to...

View Article


PowerShell If DisplayName Contains

I'm trying to work out if remote computer have Symantec client installed on them. To do this, I have a list of computer names, and am trying to check them against the code below:$List =...

View Article

how can I list print queues per server via power shell script

Hello,we are managing many print servers on our domain environment,  now for auditing purpose I need to report print queues per server,  and it seems bit difficult task doing it via GUI in print...

View Article

VB Script to Audit AD Logon and Logoff Data

Hi,I was wondering if there is a script out there that will audit Logon and Logoff information from user logon's/logoff's on my domain workstations, and then stick it into a CSV file?For example, if...

View Article

Powershell script in autostart folder

HelloI put two scripts to alluser startupfolder C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUpa Batch file which shall start a powershell script.The result is not as expected: I want the...

View Article


Get Users CN from RDPersonalDesktopAssignment

Hello everyone. We have a script, which return usernames and their assigned desktops:$VPS=Get-RDPersonalVirtualDesktopAssignment -CollectionName vps -ConnectionBroker srv-rdcb-en-03.bankspb.ru |select...

View Article

Powershell: edit profile error "does not exist"

Hi,I'm trying to edit my powershell profile (started x86 since I need that one) but I get errors, pls advise. The path does not exist indeed but why does it show it then?J.PS K:\> $profile...

View Article


VB Script AD Logon and Logoff

Hi,I have seen various scripts on AD logon and logoff. But my requirement is only to get the output only as below;EmpCode,Transaction Date,Transaction Time EMPNO,YYYYMMDD,HHMM can anyone help me with...

View Article

how to use wild card with variable in powershell

HIi am trying to use wild card with variable but getting an error message, "You cannot call a method on a null-valued expression."$src = 'C:\Temp'$TabletzipPath = $src + "tab*.zip"i would like to copy...

View Article


how to unzip the latest file in a folder

I have found this code on internet which is perfect the only problem is how to use get-childitem in this code so that it copies the most recent zip file and unzips it. here is the code. $path =...

View Article

Can any body help patches applying through powershell?

Hi,Is there any posibility to apply patches automatically on servers by using powershell?In my Environment having vbscript is using for applying patches to servers with notification E-Mail to...

View Article

start sleep script need understanding

$job = Start-Job {$i=0; $c=0; while (1) { Write-Progress Activity "Step $i"; $i++; Start-Sleep -sec 1 }} while ($job.State -eq 'Running' -And $c -lt 5) { $c++; $progress=$job.ChildJobs[0].progress;...

View Article
Browsing all 15028 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>