Found 2039 Articles for Microsoft Technologies

How to control recursion in Get-ChildItem in PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 07:37:03

1K+ Views

When –Depth parameter is used along with Get-ChildItem, it controls the recursion of displaying the subfolders and their contents. For example, if –Depth parameter is set to 1 then it will display only the content of the parent folder and immediate subfolders but not the subfolders of the subfolders.CommandWhen you specify –Depth parameter, no need to add –Recursion parameter. It will automatically set the depth level.Get-ChildItem D:\Temp\ -Depth 1OutputPS C:\WINDOWS\system32> Get-ChildItem D:\Temp\ -Depth 1     Directory: D:\Temp Mode                LastWriteTime         Length Name ----             ... Read More

How to use the -recursive parameter in Get-ChildItem using PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 07:33:19

1K+ Views

To display the contents of the subfolders including files and folders, -Recurse parameter is used.CommandGet-ChildItem -Path D:\Temp -Recurse-Recurse parameter will not display the hidden files and folders.OutputDirectory: D:\Temp Mode                LastWriteTime         Length Name ----                -------------         ------ ---- d-----       13-12-2019     09:52                GPO_backup d-----       24-11-2018     11:31                LGPO -a----       07-05-2018     23:00     ... Read More

How to list the subfolder contents using Get-ChildItem using PowerShell?

Chirag Nagrekar
Updated on 23-Jan-2020 07:30:49

8K+ Views

To display the contents of the subfolders including files and folders, -Recurse parameter is used.CommandGet-ChildItem -Path D:\Temp -Recurse-Recurse parameter will not display the hidden files and folders.OutputDirectory: D:\Temp Mode                LastWriteTime         Length Name ----                -------------         ------ ---- d-----       13-12-2019     09:52                GPO_backup d-----       24-11-2018     11:31                LGPO -a----       07-05-2018     23:00     ... Read More

Microsoft’s Mixed Reality Headset – One Step Ahead

karthikeya Boyini
Updated on 23-Jan-2020 07:20:46

124 Views

You may have got the chance to experience one of the amazing headsets powered with awesome technologies as Augmented Reality (AR) or Virtual Reality (VR) and fallen in love with them. And that must be a wonderful experience when you enjoy a roller coaster ride or swimming in a deep sea in the virtual world still sitting on your couch in your living room with a VR or AR headset. Isn’t it amazing, when you think that how much the technologies evolved so far? It is not so long back when these headsets were only used for listening songs or ... Read More

Microsoft Emergency Path for RCE (Remote Code Execution) in Windows Malware Scanner (CVE-2017-0290)

karthikeya Boyini
Updated on 23-Jan-2020 07:13:48

160 Views

The famous security researcher Tavis Ormandy has recently announced on Twitter that he and his researcher Natalie Silvanovich has discovered a vulnerability called “Remote Code Execution” in recent memory. According to them, the vulnerability will work against the default installation which is “Wormable” has the ability to replicate itself on an infected computer and then spread to the other PCs automatically in the network.Microsoft has announced that their own antivirus is made of Windows 7, 8.0, 8.1 and 10 computers as well as Windows Server 2016, is vulnerable due to the latest released out-of-band update for the patch “Remote Code ... Read More

Latest MS Excel Specifications, Features and Benefits

karthikeya Boyini
Updated on 23-Jan-2020 05:43:01

346 Views

Since its arrival in March 2017, the new updated version of Windows Excel has grabbed good words of mouth from the global users. It is not new that Microsoft always tries to surprise its users by adding exciting features to its updated applications, this version no 1703 of MS Excel also stands tall in that. The introduction of Dubai Font style and integration of Bing search engine are some few exciting features from the list. Let’s discuss them in a bit detail.Combine BinaryThough, it is not among the newly added features but yet is the improved one than the previous. ... Read More

How to list the directory content in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 12:42:10

40K+ Views

To display the directory content, Get-ChildItem cmdlet is used. You need to provide the path of the directory or if you are in the same directory, you need to use only Get-ChildItem directly. In the below example, we need to display the contents of the D:\temp directory.When Get-ChildItem command is run outside of this directory then the path of the directory should be provided. This is called the absolute path.PS C:\> Get-ChildItem D:\Temp\CommandWhen this command is run directly within the directory then simply run this command. This is called a relative path.PS D:\Temp> Get-ChildItem OutputDirectory: D:\Temp Mode       ... Read More

How to retrieve specific file(s) information using Get-ChildItem in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 12:40:58

3K+ Views

When the item (file) path is provided to the Get-ChildItem cmdlet, it extracts the file information like Name, LastWriteTime, Size, etc.ExampleGet-ChildItem -Path D:\Temp\style.cssOutputDirectory: D:\Temp Mode                LastWriteTime         Length Name ----                -------------         ------ ---- -a----       08-12-2017     10:16            393 style.cssCommandTo get the full properties of the file then you need to use fl * (Format-List *) pipeline command.Get-ChildItem -Path D:\Temp\style.css | fl * OutputPSPath            : Microsoft.PowerShell.Core\FileSystem::D:\Temp\style.css ... Read More

What are the parameters supported by Get-ChildItem in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 12:39:08

341 Views

Below parameters are supported by Get-ChildItems. Get-ChildItem[[-Path] ] [[-Filter] ] [-Include ] [-Exclude ] [-Recurse] [-Depth ] [-Force] [-Name] [-Attributes ] [-FollowSymlink] [-Directory] [-File] [-Hidden] [-ReadOnly] [-System] []

Which methods are supported by Get-ChildItem in PowerShell?

Chirag Nagrekar
Updated on 22-Jan-2020 12:44:39

418 Views

There are methods or functions which are useful for directories and file operations.Methods for the directory.TypeName: System.IO.DirectoryInfo Name                      MemberType ----                      ---------- Create                    Method CreateObjRef              Method CreateSubdirectory        Method Delete                    Method EnumerateDirectories      Method EnumerateFiles            Method EnumerateFileSystemInfos  Method Equals                    Method ... Read More

Advertisements