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 ArticleMicrosoft 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 ArticleScript 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 ArticleScript 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 ArticleSort 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 ArticleTrying 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 ArticleUnable 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 ArticleFilter 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 ArticleMoving 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 ArticlePowerShell 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 Articlehow 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 ArticleVB 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 ArticlePowershell 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 ArticleGet 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 ArticlePowershell: 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 ArticleVB 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 Articlehow 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 Articlehow 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 ArticleCan 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 Articlestart 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