Skip to main content

Questions tagged [powershell-3.0]

Microsoft’s command-line scripting language. V 3.0, which was introduced in Windows 8 and Server 2012, supports code autocompletion (IntelliSense). Remote sessions are more reliable, and there is a bigger selection of cmdlets and built-in functions.

1 vote
1 answer
431 views

validate particular column and its value using powershell

Validate Status Column using powershell. If any status column contain Not-compliant then overall status column needs to be displayed not-compliant. Attached data for your reference. Trying below code ...
Suraj Kumar's user avatar
0 votes
1 answer
394 views

Export data to excel by creating instance of the Excel.Application object in PowerShell

Currently i'm using ImportExcel module to fetch data from multiple csv file and export in single excel file. But due to network restriction from this month I am not able to install importexcel module. ...
Suraj Kumar's user avatar
1 vote
1 answer
764 views

Copy files and only the parent folder the file resides

Copying files but not all the folders, just the one parent/relative folder in which contains the files. Folder and Files structure: ExcelData (Folder) a. File1.xlsx b. File2.xlsx c. File3.xlsx d. ...
Suraj Kumar's user avatar
2 votes
1 answer
2k views

Powershell script to capture Screenshot

Don't want to use third party tool and module. $ie = New-Object -ComObject InternetExplorer.Application $ie.Visible = $true $ie.Navigate("https://www.google.com") $ie.FullScreen = $true ...
Suraj Kumar's user avatar
0 votes
1 answer
116 views

Exception calling "CopyFolder" with "4" argument(s): "The 'destUrl' argument is invalid."

I'm trying to copy local drive folder to targeted folder in online one drive but getting above error. Below is the code tried: - #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\...
Suraj Kumar's user avatar
0 votes
1 answer
203 views

Run-SCCMClientAction : Connecting to remote server DD4 failed with the following error message

I am running below script on my system to perform all sccm client actions trigger and getting below error. Run-SCCMClientAction : Connecting to remote server DD4 failed with the following error ...
Suraj's user avatar
  • 25
1 vote
1 answer
924 views

Export-CSV column/row value as filename

I've got a bunch of csv files that each look like this: DD-L-1_test.jaun.Csv Parameter, Version, Status OS, 21H2, Compliant Chrome, 107.1.1, Compliant DD-L-2_test.smith.Csv Parameter, Version, Status ...
Suraj's user avatar
  • 25
0 votes
1 answer
612 views

Form with Input Window, where a mechanism shall check if data has been entered

I need it to not close when user press enter or exit so that it mandate for user to make entry for all three box. I am new to powershell so I might be sounding akward but I can't find a good solution ...
Sagar Mahto's user avatar
0 votes
1 answer
30 views

Values from CSV instead of manual values

Question: This Powershell code have manual values defined "Value 1 & value 2" , want these two to be from CSV file. #Value 1 $blockedConnector1 = [pscustomobject]@{ id = ...
Varun's user avatar
  • 1
0 votes
0 answers
1k views

uninstalling the chrome using powershell script

I am trying to uninstall google chrome using powershell script but it shows me a popup to choose uninstall/cancel. How can i supress this by choosing uninstall button? Set-Location 'path\to\my\chrome' ...
ven's user avatar
  • 1
0 votes
3 answers
4k views

netstat filtering logic include/exclude in PowerShell

Currently, we use some logic in PowerShell to do a netstat -ano to get all TCP and UDP results and filter out results that we don't need to see then export it into a CSV. We want the results to only ...
Cory's user avatar
  • 13
1 vote
1 answer
1k views

PowerShell - parse beginning characters out of filenames, so they can be compared properly

Sample of file names in our naming convention using PowerShell: SYSTEM_20201019-01_PRE folder SYSTEM_20201118_file1.txt SYSTEM_20201118_file2.csv SYSTEM_20201118_file3_and_file4.txt SYSTEM_20201019-...
Cory's user avatar
  • 13
3 votes
1 answer
1k views

How to get list of CLSIDs along with their associated COM Object names?

Searching for the ways to generate or get the list of CLSIDs, I found this link, that actually does it. But it's rather incomplete in my opinion, the complete list would include CLSIDs with their ...
Vicky Dev's user avatar
  • 472
3 votes
2 answers
2k views

issue with robocopy on copying files from source to destination of longpath

I am using robocopy $source $destination /MIR, the thing is it does copy files in sync with the source but skippnig the files and directories from source which are having long path names. i would ...
E PSVP LIFE's user avatar
0 votes
1 answer
800 views

Powershell File Creation - Date Created Weird

Creating a script for work, and they want the logs to roll over for 7 days. For example, todays log is xxxxx.log, and tomorrow that will get renamed to xxxxx.01 and the next day xxxxx.02. Something ...
Freddyg103's user avatar

15 30 50 per page
1
2 3 4 5