I want to use forfiles in a batch
I am new to the batch scripting and all,but i searched for the script i needed and i have a .bat file....which has :@echo off forfiles.exe /p c:\New Folder /s /m *.* /d -30 /c "cmd /c del /q @path"...
View ArticlePerform remote intallation via script
Hi,My aim is to push script (.bat file along with the installer or any other task that would run on any client within my network)I have two batch file named remoteload.bat and remoteload2_kb.bat,...
View ArticleScheduled task runs Powershell - UserProfile\Temp full of PS1XML, PSD1 and...
Hi,on our Exchange 2010 servers I'm running a small powershell script which sets the Mailbox Retention and OWA Policy.The script works fine, but after 2 months we figured out that the User profile of...
View ArticleGet-ADGroup Invalid Enumeration Context Error PowerShell
Hi There,I'm really struggling with this Get-ADGroup / Get-ADUser command in my code. I'm getting an enumeration error after around 50,000 records, but there are around 600,000 records I need to...
View Articleaccessing RSM information from powershell or command line
I am trying to get information on Tape Mount Counts to determine when tapes are nearing their life expectancy.I have been unable to find a way to access the information without using the Management GUI...
View ArticleRun powershell script from context menu
Hi guys!I do not knowif what I'm going to ask you is achievable.This is what I want:when I click with the right mouse buttona file, possibly with certain extensions,the context menu appears, andhere I...
View ArticleScript windows server 2008 r2
Hi, my name is Paul.I want to run a program to run as!! eveloped a vbs script for my domain.################################Option explicit Dim oShell set oShell=...
View ArticleHowto use the splatting operator on a nested hashtable within a foreach-loop...
Hi Guys,consider this simple nested hashtable$items = @{"First" = @{"Parameter1" = "Value1""Parameter2" = "Value2" }"Second" = @{"Parameter1" = "Value1""Parameter2" = "Value2" } }If I want to pass the...
View ArticleBehaviour "-contains" Operator
Help guysPlaese say me, why when i run statement "1 -or 2 -contains 3" i receive True. How me uderstand this?
View ArticleHow to call a sub script from the main script on a remote server
HI i am having problem in calling a sub script from the main script using powershell on a remote server I have the main script which is call 1.ps1 the other script is called 2.ps1 Here are the scripts...
View ArticleADSI SetPassword requests smart card pin
I have an HTA application that I use to create users in AD. Javascript and ADSI is used. This is working fine, I can create users, set all desired attributes etc. But if the user that executes the HTA...
View ArticlePowerShell: AD Group Membership
Is it possible to generate group membership for all groups in AD, b member of that group? Thanks*alex
View ArticleAccess denied on Import User active directory script
Hi. First question here so let's get to it. I am creating an Access Control center for our company and part of it is when new employees are hired and needed to be added to the Active Directory with...
View ArticlePowershell script to restart service
Hello,We use Citrix and we run into issue's where Desktops unregister. I've installed the xendesktop SDK for powershell scripts and need to get a little of "unregistered desktops" and then from that...
View ArticleADSI SetPassword HTA Prompts For Smart Card PIN
Hi, We enforce smart card login using GPO on our Windows 7 workstations and are experiencing the same issue described here:...
View ArticleGet "Invalid root in registry key" when call RegWrite function on Wow6432Node
My environment is Windows 2008 R2. I have the local administrator permission and the UAC is turned off.There is a 32bit application installed on the server and I need to update its registry key value...
View Articleget the pc name with domain name and add it to my properties file using commands
i want to get the pc name with domain name and add it to my properties file using powershell .sid
View ArticleExtract .p12 Property Information via PowerShell
I am a systems administrator for a large manufacturing company. I have 500+ wireless certificates that I use on a regular basis to authenticate my end devices to the wireless network. The CISO is the...
View ArticleWriting showmessage promt to a log
Hello,I am modyfiying a vbs script and there is a line that comes in the script that says script is completed. It is because of the code below in the script:'Notify user script completed ShowMessage...
View ArticleVBS to delete a single cookie?
I have the script to delete the file down, but how do I find/delete the file?I can find it in the temp files, but i cannot seem to delete it within vbs:objFSO.DeleteFile...
View Article