Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-NTFSAccess -Path C:\\SYSVOL
Get-Command -Module ActiveDirectory
whoami
Import-Module ActiveDirectory
Get-ADGroupMember 'Domain Admins'
Get-CimInstance -ClassName Win32_QuickFixEngineering
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-NTFSAccess -Path C:\\SYSVOL
Import-Module ActiveDirectory
Get-EventLog -LogName Application -Newest 50
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-HotFix -Id KB5005565
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Invoke-WebRequest -Uri 'https://intranet.novatech.local' -UseDefaultCredentials
Get-Content C:\\Scripts\\deploy.ps1
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-ADGroupMember 'Domain Admins'
Write-Host 'Operation terminée'
Get-ChildItem -Recurse C:\\Scripts\\
Get-WmiObject Win32_OperatingSystem
Get-ProcessMitigation -Name powershell.exe
Get-WmiObject Win32_OperatingSystem
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Disconnect-PSDrive Z
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Remove-Item C:\\Temp\\old_log.log -Force
Get-ADOrganizationalUnit -Filter *
Get-ProcessMitigation -Name powershell.exe
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-ADComputer -Filter *
Get-ADObject -LDAPFilter '(objectCategory=computer)'
Get-Credential
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Command -Module ActiveDirectory
Get-Process -Name powershell
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-Service | Where-Object {.Status -eq 'Running'}
Get-WmiObject -Class Win32_Process | Where-Object {.Name -like '*spoolsv*'}
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Invoke-Command -ComputerName DC01 -ScriptBlock { gpupdate /force }
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Get-NetFirewallRule | Where-Object {.Enabled -eq 'True'}
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-SmbSession
New-Item -Path C:\\Temp -ItemType Directory
Get-ADUser -Filter 'Enabled -eq True'
Start-Sleep -Seconds 10
Test-Connection -ComputerName dc01.novatech.local
Get-ADPrincipalGroupMembership svc_backup
Get-HotFix -Id KB5005565
Get-Credential
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
Get-Service | Where-Object {.Name -like '*crypt*'}
Get-Credential
Get-HotFix -Id KB5005565
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Disconnect-PSDrive Z
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-ADObject -LDAPFilter '(objectCategory=computer)'
ipconfig /all
Restart-Service -Name 'WinRM'
Get-Acl -Path 'AD:\\OU=BadOU,DC=novatech,DC=local'
cls
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Restart-Service -Name 'WinRM'
Remove-Item C:\\Temp\\old_log.log -Force
Get-SmbSession
Get-ADUser -Filter 'Enabled -eq True'
Get-ADGroupMember 'Domain Admins'
Write-Host 'Operation terminée'
Get-EventLog -LogName Security -After (Get-Date).AddDays(-7) -InstanceId 4662 -Newest 100
Get-SmbOpenFile
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-ADOrganizationalUnit -Filter *
Write-Host 'Operation terminée'
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Disconnect-PSDrive Z
ipconfig /all
Get-Date
Get-ADUser -Filter 'Enabled -eq True'
Get-WmiObject -Class Win32_NetworkAdapterConfiguration | Format-Table Description,IPAddress,MACAddress
Get-Command -Module ActiveDirectory
Get-Content C:\\Scripts\\deploy.ps1
Get-ADPermission -Identity 'OU=BadOU,DC=novatech,DC=local' -User svc_backup
Get-HotFix -Id KB5005565
Get-ADGroupMember 'Domain Admins'
Add-Content -Path C:\\Scripts\\deploy.ps1 -Value '# Deployment script updated'
ipconfig /all
Get-FileHash -Path C:\\Windows\\System32\\notepad.exe -Algorithm SHA256
Get-Service | Where-Object {.Status -eq 'Running'}
Get-Process -Name powershell
Get-ScheduledTaskInfo -TaskName 'DailyBackupJob'
Disconnect-PSDrive Z
Copy-Item -Path C:\\Temp\\* -Destination Z:\\Backup\\
Get-ADGroupMember 'Domain Admins'
Get-Command -Module ActiveDirectory
Get-Process -Name powershell
Get-ADOrganizationalUnit -Filter *
Get-Content C:\\Users\\svc_backup\\AppData\\Local\\Temp\\deploy.log
Test-NetConnection google.com
Get-WmiObject Win32_Service | Where-Object {.StartMode -eq 'Auto'}
Get-WinEvent -FilterHashtable @{LogName='Directory Service';Id=4662} -MaxEvents 50
Restart-Service -Name 'WinRM'
Get-Command -Module ActiveDirectory
Get-ADUser svc_backup -Properties lastLogonTimestamp
Get-EventLog -LogName Security -InstanceId 4648 -Newest 100
Get-Command -Module ActiveDirectory
Get-EventLog -LogName Security -Source Microsoft-Windows-Security-Auditing -Newest 200
Get-Command -Module ActiveDirectory
Disconnect-PSDrive Z
Get-EventLog -LogName System -Newest 50
Get-Service | Where-Object {.Status -eq 'Running'}
