ipconfig /all
Get-ADGroup -Filter *
Get-ScheduledTask
Get-HotFix -Id KB5005565
Get-ADComputer -Filter *
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ADComputer -Filter *
Get-ADUser -Filter 'Enabled -eq True'
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-ADGroupMember 'Domain Admins'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ChildItem -Recurse C:\\Scripts\\
Get-Process -Name powershell
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
systeminfo
Get-Process -Name powershell
Get-ADOrganizationalUnit -Filter *
cls
Get-Process -Name powershell
Get-NetFirewallProfile
Get-ADComputer -Filter *
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-Process -Name powershell
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Set-ExecutionPolicy RemoteSigned -Scope Process
Disconnect-PSDrive Z
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-CimInstance -ClassName Win32_QuickFixEngineering
Disconnect-PSDrive Z
Get-SmbOpenFile
Get-Service | Where-Object {.Status -eq 'Running'}
Get-SmbOpenFile
Get-Command -Module ActiveDirectory
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Restart-Service -Name 'WinRM'
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-EventLog -LogName Application -Newest 50
Set-Location C:\\Temp
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-WmiObject Win32_OperatingSystem
Get-NTFSAccess -Path C:\\SYSVOL
Write-Host 'Operation terminée'
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-HotFix -Id KB5005565
Test-Connection -ComputerName dc01.novatech.local
Test-Connection -ComputerName dc01.novatech.local
Get-NetFirewallProfile
Get-Content C:\\Scripts\\deploy.ps1
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
New-Item -Path C:\\Temp -ItemType Directory
Get-ADPrincipalGroupMembership svc_backup
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
whoami
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-WmiObject Win32_OperatingSystem
Import-Module ActiveDirectory
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-ChildItem -Recurse C:\\Scripts\\
Write-Host 'Operation terminée'
Get-ADServiceAccount -Filter * -Properties *
Get-ProcessMitigation -Name powershell.exe
Get-Process -Name powershell
Get-ADOrganizationalUnit -Filter *
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-ADComputer -Filter *
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-SmbSession
Get-EventLog -LogName Application -Newest 50
Get-EventLog -LogName Application -Newest 50
Get-ChildItem -Recurse C:\\Scripts\\
Get-Date
Get-NetIPAddress
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
cls
Get-ADPrincipalGroupMembership svc_backup
New-Item -Path C:\\Temp -ItemType Directory
Get-Credential
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-ProcessMitigation -Name powershell.exe
Get-SmbShare
ipconfig /all
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-NetIPAddress
Get-LocalGroupMember -Group 'Administrators'
Disconnect-PSDrive Z
Get-SmbShare
Get-Command -Module ActiveDirectory
Get-ADGroup -Filter *
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-NetFirewallProfile
Get-ChildItem -Recurse C:\\Scripts\\
New-Item -Path C:\\Temp -ItemType Directory
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Get-ADGroup -Filter *
Get-EventLog -LogName Application -Newest 50
New-Item -Path C:\\Temp -ItemType Directory
Set-ExecutionPolicy RemoteSigned -Scope Process
Import-Module ActiveDirectory
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Test-Connection -ComputerName dc01.novatech.local
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-NetIPAddress
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Write-Host 'Operation terminée'
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-HotFix -Id KB5005565
Get-Service | Where-Object {.Status -eq 'Running'}
Restart-Service -Name 'WinRM'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
