Internet Explorer COM Automation Not Working
I've been searching for a solution to this for a while and I'm stunned and embarrassed I haven't found more helpful pages with information how to solve this problem for myself.I have a few different...
View ArticleStopping Module on error without breaking calling script
HiWhat is the "best practice" to stop your PowerShell module on error but still respect the calling script $ErrorActionPreference?For example:Module "Test-Error.psm1":function Test-Error {...
View ArticleOverwriting Fonts
Hi, I can successfully install fonts with PS, but it prompts me to overwrite each individual font that already exists. We have to overwrite quite a few and I am trying to incorporate this in some sort...
View ArticleUse PS to start and stop a process depending upon the starting and stopping...
I was trying to use Task Scheduler to start Skype for Business after Outlook had started (already using it to start Outlook), and to kill SfB after Outlook was terminated. Apparently, that's beyond...
View ArticleThe application was unable to start (0xc0000142)
Hello,I have bought last week a new Surface Book 2. But at this moment Powershell is unable to start. By start Powershell there is a error: the application was unable to start (0xc0000142)Â At this...
View ArticleHow to combine 2 objects into one
Hi,I want to create report of volumes which lies on disks + with Bus Number and Target ID number of disk.Example output should be:PartSizeGB : 125 PartName : C: PartFreeSpaceGB : 50 DiskSCSIBus : 0...
View ArticleStoring new user in a variable
I am trying to create a new user and then store it in a variable. Anyone have an idea how I would accomplish this? This is what I have so far but it's just returning null$user = New-ADUser -Name...
View ArticleNeed help with a powershell script removing files in the Downloads folder
Hello,I know VERY little about powershell but know enough to sort of get by. This problem is actually for work. I was tasked to find a way to remove files from the Downloads folder and delete...
View ArticleNot able to delete the contents of a specific location(The fully qualified...
Hi team,I'm trying to delete the content of specific cache location in my application but it's always failing.Command :Â Remove-Item "E:\Program Files\SAP BusinessObjects\tomcat\work\Catalina\*"...
View ArticleXML node InsertAfter is not working properly
In VS *.csproj file, I have 3 Itemgroup tags, Inside in 2nd tag I have update one more tag like below     <Res Include = "3" >        <Culture>fr</Culture>...
View ArticleInvoke Webpage wowth param
Hi everyone. I want invoke this web page http://www.overpass-api.de/api/xapi?node[bbox= 5.97,50.66 ,6.21,50.85] in power Shell but with paramI mean i'd like to enter These number when i invoke script....
View ArticleInvoke Webpage with param
Hi everyone. I want invoke this web page http://www.overpass-api.de/api/xapi?node[bbox= 5.97,50.66 ,6.21,50.85] in power Shell but with paramI mean i'd like to enter These number when i invoke script....
View ArticleAutomate Server checklist items through PowerShell or any other Script
Hi All,I would like need all your help for automate below server checklist items in single script, need the requested details in single output in any format. Server model (physical /virtual) Os type...
View Articleinclude username in output Get-AppLockerFileInformation -EventLog
$event = Get-AppLockerFileInformation -EventLog -LogPath "C:\windows\system32\winevt\logs\Microsoft-Windows-AppLocker%4EXE and DLL.evtx" -EventType Audited -Statistics | Select-Object -First 1output =...
View ArticleChange virtual network adapters name using it macaddress.
Hello.I have a bunch of virtualmachines in my lab. Im learning how to cluster/manage/conect them.I have lot of problems identifiying the network adapters that belongs to each network.I have a cvs file...
View ArticleImport a scheduled Task (XML)
HiSo I have been trying to import a scheduled task I had originally created through the GUI. The task was exported successfully and I also manually imported on a couple of servers to check this out...
View ArticleInvoke-webrequest with other user credentials to access kerberos IIS Site
HiSystem:Using Powershell 5.0 on server 2012R2What I want:I want to access/load (from another server) a IIS site which is using kerberos authentication through PowerShell. I want to do this because I...
View ArticleBackup and Restore your AD
Does anyone utilize powershell scripts for daily/weekly/Monthly and production changes for backups and restores?Thank you for any of your help?Robb!
View ArticleReturning ANY property with System.DirectoryServices.DirectorySearcher &...
OK, so there is this old thread -...
View Articlefor each parallel
hi all i fail to understand what mistake i have committed on the script .i get only one result on the output even when i have multiple urls on the input fileplease advise Workflow check_site {...
View Article