Put printe off/on line via scheduled batch job...
Hello,I looked at all the parameters of all the vbs scripts in C:\Windows\System32\Printing_Admin_Scripts\en-US to see if I can put a printer on/off line via a scheduled batch job, could not find...
View Articleicacls remote against %temp% folder
HiI have a bat file that is copied to users profile temp directory which I remotely execute to gather support diagnostic infoOn some machines it does not launch. I remoted onto same machine and tried...
View ArticleRunning yii2 script using task scheduler
I want to run yii2 script using task scheduler, but I only get 0xFF result. This is the script:<?php namespace console\controllers; use Yii; use yii\console\Controller; use Swift_TransportException;...
View ArticleMDT Deploment Of Applications
Greetings,First time using MDT for deployment so I thought I would follow a Microsoft guide: https://technet.microsoft.com/en-us/itpro/windows/deploy/create-a-windows-10-reference-image. I get the...
View ArticleSet Advanced Permission on Folder
Hello My Name is Werneri am a newbie with powershell. I need to set the special Permission (advanced Permission) on folders in my Project folder strukture.i am google a bit but i found only some...
View ArticleRun scheduled task and loop check if task is done
Hi guys,I made a script to automate the process of creating an AD user, but it does not sync with our online environment until we run a manual scheduled task.I have a Windows Server 'SRVAD90' that has...
View ArticlePowerShell - Export to CSV File - Active Directory
Hi Guys,I am looking for a pipped command or simple script to export AD groups and the canonical name of a user to csv file for backing up purposes. Also it would be ideal to have a script to do this...
View ArticleScript Issue, Command for Ansoft HFSS
Hi, first off I'm new to vbscripting, though I've used LiSP and VB.Net in AutoCAD. I'm trying to write a script for Ansoft Ansys Electronic Desktop. I have:Dim oAnsoftApp Dim oDesktop Dim oProject...
View ArticleMonitoring for new folder creation only triggers with 'New Folder'
Hello!I'm trying to monitor a specific folder on a file server, and when a new folder is created within that folder, change the permissions on that new folder. For instance: Inside the folder C:\Test...
View ArticleGetting list of -ItemType options for the New-Item cmdlet
New-Item teases the option of creating arbitrary items in appropriate locations, but it seems that the key is that accursed -ItemType property, which taunts me.When in the filesystem, there's help...
View ArticlePowerShell.exe opens and close rapidly during GPO logon script
Hello,I created a logon script that promotes any user that has been on the machine in the last X days to the Administrators group. I have tested this script successfully and have no issues with...
View ArticleAssigning icon to a shortcut in powershell
Heres a simple script i want to have running on all users in my domain upon logon, the condition should be if this icon already exists then dont make a new one, if it doesnt then make a new icon. Along...
View ArticlePowerShell script to transform content of a list in text file to a table in...
Hi, I have a text file which list servers info such as below: server1 Status: on CPU: 4 cores Memory: 256GB server2 Status: off server3 Status: on CPU: 8 cores Memory: 512GB I want to transform it to...
View ArticleVBSCript to check different strings and replace them with new ones
Hi .. In VBSCript. ...how to check different strings and replace them with new ones. For example my file has a line #c=c:\test\ #c=c:\test1\ #c:\c:\test2\ and i want them to be replaced by c=c:\test...
View ArticlePowershell script to show scheduled tasks history details and its properties ?
People, This script originally can display the Server name, Scheduled Task name and the Service Account Name.Import-Module ActiveDirectory $VerbosePreference = "continue" $list = Get-ADComputer...
View Articlecopy files to another directory (if exist, skip copy files, don't overwrite)
Hi Guys,i have windows server 2012 on my servers.i want to copy files from folder A to folder B using batch. but, i usually using 'copy', but this 'copy' will overwrite the files that exist in B...
View ArticlePowerShell email function
Hi , I try to create a sent mail function which will be use by some looping code , it was written in PowerShell code as below , which when i fire the logic in PowerShell ISE , the body message and...
View ArticleChange pc name and Join to the domain with the new name
Hello there,I hope you can help me, what I am trying to do is quite simple, I am deploying windows 10 to 700 pcs and I need a power shell script to ask for new name and automatically join them to the...
View ArticleHow I could synchronise three runspaces, and pass data between them, in...
Hello,I'm working on Powershell script for connecting an user to a VPN. I have three components : GUI,Timer and Core.Core is for executing some background actionsGUI is for showing where the user is in...
View ArticlePS: comparing time
Hi,I'm writing a small script which sees how much it takes to load a webpage, when it takes more then 300 ms, it should do something. However, with a value of 89 it already shows as greater or equal to...
View Article