Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Get-ADUser -Filter 'Enabled -eq True'
Get-Process | Where-Object {.CPU -gt 100}
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-ADOrganizationalUnit -Filter *
Get-ScheduledTask
Get-EventLog -LogName System -Newest 50
Write-Host 'Operation terminée'
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-ADServiceAccount -Filter * -Properties *
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-ChildItem -Recurse C:\\Scripts\\
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-ADGroup -Filter *
Get-Process -Name powershell
Get-LocalGroupMember -Group 'Administrators'
whoami
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
hostname
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Test-Connection -ComputerName dc01.novatech.local
Get-ScheduledTask
hostname
cls
Get-NetIPAddress
Get-Content C:\\Scripts\\deploy.ps1
Get-WmiObject Win32_OperatingSystem
Write-Host 'Operation terminée'
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-NTFSAccess -Path C:\\SYSVOL
Get-SmbSession
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Restart-Service -Name 'WinRM'
Test-NetConnection google.com
Get-WmiObject Win32_OperatingSystem
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-HotFix -Id KB5005565
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-Command -Module ActiveDirectory
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
cls
New-Item -Path C:\\Temp -ItemType Directory
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-SmbSession
Disconnect-PSDrive Z
Import-Module ActiveDirectory
Get-Date
Get-Service -Name WinRM | Format-List *
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-SmbShare
whoami
Get-Credential
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Test-NetConnection google.com
Get-ADServiceAccount -Filter * -Properties *
Get-EventLog -LogName Application -After (Get-Date).AddDays(-1) -EntryType Error
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ADServiceAccount -Filter * -Properties *
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
hostname
Get-SmbOpenFile
Get-ADUser svc_backup -Properties lastLogonTimestamp
Restart-Service -Name 'WinRM'
Write-Host 'Operation terminée'
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
New-Item -Path C:\\Temp -ItemType Directory
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-EventLog -LogName Application -Newest 50
Get-ADComputer -Filter *
Import-Module ActiveDirectory
Disconnect-PSDrive Z
Get-EventLog -LogName Security -InstanceId 4672 -Newest 50
Get-SmbSession
Test-Connection -ComputerName dc01.novatech.local
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ADServiceAccount -Filter * -Properties *
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADUser svc_backup -Properties lastLogonTimestamp
New-PSDrive -Name Z -PSProvider FileSystem -Root \\\\DC01\\SYSVOL
Set-Location C:\\Temp
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Test-Connection -ComputerName dc01.novatech.local
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Set-ExecutionPolicy RemoteSigned -Scope Process
Get-Service | Where-Object {.Name -like '*crypt*'}
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-HotFix -Id KB5005565
Get-WmiObject Win32_OperatingSystem
ipconfig /all
Get-HotFix -Id KB5005565
Get-LocalGroupMember -Group 'Administrators'
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-NTFSAccess -Path C:\\SYSVOL
Get-EventLog -LogName Application -Newest 50
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Get-EventLog -LogName System -Newest 50
Get-Credential
Get-Service -Name WinRM | Format-List *
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-ADComputer -Filter *
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
Write-Host 'Operation terminée'
Write-Host 'Operation terminée'
