Logging function for script
Hey scripting guys. I am having an issue where some users profiles get stuck when logging out of my virtual environment. I usually have to manually remove them from the C drive and from the registry so...
View ArticleScripting DNS entries
I'm a bit new to this and this was dropped on my department's desk.The scenario:My organization has a DNS zone for our primary production domain, and all of our IP's for production machines are managed...
View ArticlePowershell: create scheduled task which repeats every other month?
Hi,I have a Powershell-script to deploy windows updates every other month on PatchTuesday.However I don't find a way to schedule it (via Powershell every other month). Please advise how this can be...
View ArticleDrives mounted as Unavailable on the remote machine using Invoke-Command
Hi Everyone,After installing the latest Windows updates, I'm facing an issue when I try to mount a network drive on a remote machine using theInvoke-Command cmdlet.My requirement is to run the mount...
View ArticlePowerShell Script
Hello friends, New in the world of infra in business, would it be possible to have a little help? Indeed within my box, we have workstations in Win 7 and Win 10 and servers Win servers 2012 r2 and 2008...
View ArticleScripting file transfers between Windows 10 phone and PC
I very often connect my Lumia 950 phone to a PC for the purpose of transferring (moving) files from the phone to the PC.I'd like to script that so that I don't have to open File Explorer, navigate to...
View ArticleCreate troubleshoot wizard
Hi,I want create wizard for users, like troubleshoot wizard in windows.Have you seen any software helps with this. Or it is a best way to use visual basic?
View Articleget -acl in registry
Good AfternoonI need to see the current privileges in "HKEY_CLASSES_ROOT\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\ShellFolder". Please help me with the command. I saw some examples on the web...
View ArticleRunning PowerShell scripts as domain accounts through Clustered Scheduled Tasks
Hey all,I am trying to use Clustered Scheduled Tasks to replace a number of automation tasks and I am hitting a very frustrating issue. Because clustered scheduled tasks can only run as System I have a...
View ArticleRobocopy
Hello,I can´t figure out how to copy only files (xlsx) files to destination. Content of folder is ok.Here is my script fo folder backup:robocopy c:\common\Logistika\ \\ithelp\transfer\MN\ /MIR /W:0...
View ArticleDelete .BAK files in N number of days
hi guys, having trouble with maintenance tasks and in interim just want a simple script to run as scheduled task to delete some older files from a folder. Scenario: delete .bak files from specific...
View ArticleCan I export an Outlook OST to PST using a script?
Hi all. I would like to export my local OST file to a PST using a script (VB or otherwise). Is this possible? To be clear, I know how to manually export my local OST to a PST (using Outlook 2013)....
View ArticleGet the CPU temperature with PowerShell
Hello everybody!With an external software like Core-Temp it is pretty easy to get the CPU temperature. But I would like to obtain the same data through PowerShell or cmd.exe, also for scripting...
View ArticlePowerShell -Identity in get-aduser is null or empty on command when using a...
I am fairly new to PowerShell and have a script that parts works via the command however not when ran as a script. The problem appears when a variable assinged from a previous function is used in a...
View Articlexcopy access denied
Dear all, i need to copy some files from a source directory not protected (standard users have full rights) to a protected folder (standard users have the following permissions on Folder and...
View ArticleNeed help with a batch file not working as expected on Windows 2016 server
I've been using the following in a batch file to install a service for years:@echo offMyService.Hosts.WindowsService.exe --installpauseWhen I tried to run the same batch file on server 2016, I got...
View ArticleTrying to run simple AD Group Creation script
trying to run:c:\create ad groups> runas</g> /u:domain\administrator "powershell -file c:\create ad groups\cgps.ps1"I get prompted and enter correct passwordResult:Attempting to start...
View ArticleHow to get a relyable report of licences consumed
Hi, Im trying to get a O365 licence report in powershell of our tenant, to detect when we have to buy more O365 licences before get blocked by Azure to assign more to our Employees.Currently, we are...
View ArticlePS - Add header to new page.
Hello,I would like to ask you for help related to one issue which I'm trying to resolve. Basically, I'm trying to gather some data for MS SQL and output everything to HTML. I'm using something like:...
View ArticleWindows 10 V1809 Unattended Installation
We are using the following xml file for windows 10 unattended installation. But unable to Pass Keyboard layout selection , Privacy settings, Lets connect (network setup) settings. Could you please help...
View Article