UNDERCODE COMMUNITY
2.68K subscribers
1.23K photos
31 videos
2.65K files
80.3K links
๐Ÿฆ‘ Undercode Cyber World!
@UndercodeCommunity


1๏ธโƒฃ World first platform which Collect & Analyzes every New hacking method.
+ AI Pratice
@Undercode_Testing

2๏ธโƒฃ Cyber & Tech NEWS:
@Undercode_News

3๏ธโƒฃ CVE @Daily_CVE

โœจ Web & Services:
โ†’ Undercode.help
Download Telegram
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘ Cisco password anti-hacking
twitter.com/UnderCodeTc

๐Ÿฆ‘ ๐•ƒ๐”ผ๐•‹๐•Š ๐•Š๐•‹๐”ธโ„๐•‹ :

1> Router (config) # login block-for 100 attempts 5 within 50

2> Router (config) # login quiet-mode access-class myacl

3> Router (config) # login delay 10

4> Router (config) # login on-failure log

5> Router (config) # login on-success log

A) The first command must be entered before using any other login commands. For 100 seconds, it blocks any attempts to connect to the device, if within 50 seconds 5 failed registrations were made on the router.

> If there are addresses that should not be blocked (for example, administrative), then they are described by the login quiet-mode access-class command.

B) The login delay command determines the delay time before allowing re-registration. If it is not specified, then automatic delay will be carried out by the login block-for command for 1 second. The last 2 commands include registration of successful and unsuccessful attempts to connect to the router.

C) You can verify the registration subsystem settings by using the show login command. And the show login failures command shows all failed attempts to connect to the device.


Written by UndercOde
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘Code to get the names and ip of the servers associated with the sharepoint
t.me/UndercOdeTesting

๐Ÿฆ‘ ๐•ƒ๐”ผ๐•‹๐•Š ๐•Š๐•‹๐”ธโ„๐•‹ :

PS Z: \> $ servers = Get-SPServer | where {$ _. role -ne "Invalid"}
PS Z: \> $ servers | select Name, Role, @ {Label = "IP Address"; Expression = {[System.Net.Dns] :: GetHostByName ($ _. Name) .AddressList.IPAddressToString}} | Format-table

๐Ÿฆ‘ Name Role IP Address

SPF1 Application 192.168.30.28
SPF1-2 Application 192.168.30.29



PS Z: \> $ servers = Get-SPServer
PS Z: \> $ servers | select Name, Role, @ {Label = "IP Address"; Expression = {[System.Net.Dns] :: GetHostByName ($ _. Name) .AddressList.IPAddressToString}} | Format-table

๐Ÿฆ‘ Name Role IP Address

DatabaseServer Invalid
db02 Invalid 192.168.30.8
FailOverServer Invalid
mail Invalid 192.168.30.13
secexch Invalid 192.168.30.14
SPF1 Application 192.168.30.28
SPF1-2 Application 192.168.30.29
SMirror Invalid 192.168.30.21

Written by UndercOde
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘Installation and simple configuration of yate in centos
Instagram.com/UndercOdeTestingCompany

๐Ÿฆ‘ ๐•ƒ๐”ผ๐•‹๐•Š ๐•Š๐•‹๐”ธโ„๐•‹ :

1) Downloaded wget http://voip.null.ro/tarballs/yate5/yate-5.4.0-1.src.rpm

2) the rpm -Uvh yate-5.4.0-1.src.rpm

3) Added "/ usr / local / lib" to the end of /etc/ld.so.conf

4) ldconfg

5) regfile.conf
Added by:
[100]
password = 001

[200]
password = 002

6) regexroute.conf
Corrected:
[default]
$ {username} ^ $ = -; error = noauth

7) / usr / local / bin / yate start
For debug, the launch option is: yate -vvvvvvv


Written by UndercOde
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘A simple introduction to the basics of OOP in python
t.me/UndercOdeTesting

๐Ÿฆ‘ ๐•ƒ๐”ผ๐•‹๐•Š ๐•Š๐•‹๐”ธโ„๐•‹ :

Code checked on version 3


Class members are called attributes, class functions are called methods, class fields are called properties.

-
Minimum class definition:
class A:
pass

Creating an instance of the class:
o = A ()

-
The method has an argument self:
class A:
def func (self, x):
return "arg self is:" + str (self) + "arg 2 is:" + str (x)


Calling a class method without instantiating: A.func (5,2)
'arg self is: 5arg 2 is: 2'

-
Classes can inherit from other classes:
class A (object):
def func (self):
return "Func in A "

class B (A):
pass

Calling the parent class method
o = B ()
o.func ()

-
Constructor and destructor (methods called when creating and deleting a class)
class A:
def init (self, p1, p2):
self.line = (p1, p2)
def del (self):
print ("The destructor deletes from memory:% s -% s "% self.line)

We create an instance, check the execution of the constructor, delete the instance
a = A ("s1", "s2")
a.line
del a

-
Encapsulation. Hidden attributes are defined using the Attribute name construct, direct access to them will be closed:
class A (object):
def __init (self):
self . i = 1
def set_i (self, x):
self . i = x
def get_i (self):
return self . i

Change hidden attribute
a = A ()
a.get_i ()
a.set_i (5)
a.get_i ()

-
Documentation of class
class A (object):
"" "Documentation" ""
pass

Documentation call
A . doc__
'Documentation'

Written by UndercOde
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘The task is to put pypi on windows::
ยป fb.com/UndercOdeTestingCompany

๐Ÿฆ‘ ๐•ƒ๐”ผ๐•‹๐•Š ๐•Š๐•‹๐”ธโ„๐•‹ :

1) requirepython 2.7 installed

Take pypi from link
> https://pypi.python.org/pypi/jaraco.windows

2) Unpack in c: pypi for example

3) Next, open cmd :

4) cd c: pypi

C: Python27python.exe setup.py install

5) Open a new cmd :

6) Let's check on the example of django :

pip install django

Written by UndercOde
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘ Most Usefull Network drivers
t.me/UndercOdeTesting

๐Ÿฆ‘ ๐•ƒ๐”ผ๐•‹๐•Š ๐•Š๐•‹๐”ธโ„๐•‹ :

> The Docker network subsystem is plug-in using drivers.
Several drivers exist by default and provide basic network functions:

1) bridge : the default network driver.
If you do not specify a driver, this is the type of network you are creating.
Bridged networks are commonly used when your applications run in standalone containers that must communicate.

2) host : for stand-alone containers, removes network isolation between the container and the Docker host.
The host is only available for swarm services in Docker version 17.06 and higher.

3) overlay : overlay networks connect several Docker daemons together and allow Swarm services to communicate with each other.
You can also use overlay networks to facilitate communication between the Swarm service and a stand-alone container.
Or between two standalone containers on different Docker daemons.
This strategy eliminates the need for OS-level routing between these containers.

4) macvlan : Macvlan networks allow you to assign a MAC address to a container, making it a physical device on your network.
The Docker daemon routes traffic to containers by their MAC addresses.
Using the macvlan driver is sometimes the best choice when working with legacy applications.
Applications that expect a direct connection to the physical network rather than routing through the Docker host network stack.

> none : for this container will disable all networks.
Commonly used in conjunction with a custom network driver. None are available for swarm services.

5) Network Plugins : You can install and use third-party network plugins with Docker.
These plugins are available from the Docker Hub or from third-party vendors.

Written by UndercOde
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘How to Display actual PostgreSQL queries
t.me/UndercOdeTesting

๐Ÿฆ‘ ๐•ƒ๐”ผ๐•‹๐•Š ๐•Š๐•‹๐”ธโ„๐•‹ :

1) Display the actual queries generated by \ d and other backslash commands.

2) You can use this to examine PSQL internal operations.
This is equivalent to including the ECHO_HIDDEN variable

> \set ECHO_HIDDEN

๐Ÿฆ‘Output :

postgres=# \l
*****
QUERY ******
SELECT d.datname as "Name",
pg_catalog.pg_get_userbyid(d.datdba) as "Owner",
pg_catalog.pg_encoding_to_char(d.encoding) as "Encoding",
d.datcollate as "Collate",
d.datctype as "Ctype",
pg_catalog.array_to_string(d.datacl, E'\n') AS "Access privileges"
FROM pg_catalog.pg_database d
ORDER BY 1;
**********************

List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------+----------+----------+-------------+-------------+-----------------------
postgres | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 |
template0 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
template1 | postgres | UTF8 | en_US.UTF-8 | en_US.UTF-8 | =c/postgres +
| | | | | postgres=CTc/postgres
(3 rows)


Written by UndercOde
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘How to Add a New Hard Drive to FreeBSD
Fb.com/UndercOdeTestingCompany

๐Ÿฆ‘ ๐•ƒ๐”ผ๐•‹๐•Š ๐•Š๐•‹๐”ธโ„๐•‹ :

1) We have a hard drive defined as:
/ dev / sdb1

2) Delete existing sdb1 disk
layout : gpart destroy -F sdb1

3) Create a new gpt sdb1 disk
layout : gpart create -s gpt / dev / sdb1

4) Example of creating swap and fs with ufs:
gpart add -t freebsd-swap -s 1048576 / dev / sdb1
gpart add -t freebsd-ufs / dev / sdb1

5) Create ufs fs on the second created partition:
newfs -U / dev / sdb1p2

6) Add lines to mount on / etc / fstab when loading the
OS : / dev / sdb1p1 none swap sw 0 0
/ dev / sdb1p2 / mnt ufs rw 2 2

7) We connect on the fly ufs section:
mount -a

8) We connect swap section on the fly:
swapon / dev / sdb1p1

Written by UndercOde
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘Speeding internet :

>Cisco CEF and Address Forgery
Enabling CEF Switching (Cisco Express Forwarding (CEF) is a high-speed packet routing / switching technology used in high-performance Layer 3 switches that allows faster and more efficient traffic processing.)
t.me/UndercodeTesting

๐Ÿฆ‘ ๐•ƒ๐”ผ๐•‹๐•Š ๐•Š๐•‹๐”ธโ„๐•‹ :

1) r1 (config) #ip cef

2) Set the reverse route check on the interface:
r1 (config) #interface fastEthernet 1/0
r1 (config-if) #ip verify unicast reverse-path

3) show ip cef - displays data in the FIB

4) Show ip cef detail displays the details of each FIB element

5) Show ip cef summary - displays general statistics of FIB elements

6) Use the show cef interface x / x command to find out if the "IP CEF switching enabled,"
or "IP distributed CEF (dCEF) switching enabled."

Written by Undercode
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘Terminal File Manager (Android-Termux) Topic 2020
t.me/UndercOdeTesting

๐Ÿฆ‘๐•€โ„•๐•Š๐•‹๐”ธ๐•ƒ๐•ƒ๐•€๐•Š๐”ธ๐•‹๐•€๐•†โ„• & โ„๐•Œโ„•:


1) Install the utilities you may need based on your regular workflows.
> https://github.com/jarun/nnn#utility-dependencies

2) Configure cd on quit.
>https://github.com/jarun/nnn/wiki/Basic-use-cases#configure-cd-on-quit

3) To open text files in $VISUAL (else $EDITOR, fallback vi) add program option -e in your alias.

4) For additional functionality install plugins.
>https://github.com/jarun/nnn/tree/master/plugins#installing-plugins

5) To copy selected file paths to system clipboard and show notis on cp, mv, rm completion use option -x.

6) For a strictly CLI environment, customize and use plugin nuke.
> https://github.com/jarun/nnn/blob/master/plugins/nuke

๐Ÿฆ‘fOR UBANTO :

1) Download the latest stable release or clone this repository (risky), install deps and compile. On Ubuntu 18.04:

$ sudo apt-get install pkg-config libncursesw5-dev libreadline-dev
$ sudo make strip install

2) To compile without libreadline:

$ sudo apt-get install pkg-config libncursesw5-dev
$ sudo make O_NORL=1 strip install

PREFIX is supported, in case you want to install to a different location.

WRITTEN BY UNDERCODE
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–


๐Ÿฆ‘ How Get Asterisk on Debian ? by undercOde part 1
Procedure for installing Asterisk on Debian Squeeze.
Instagram.com/UndercOdeTestingCompany

๐Ÿฆ‘ ๐•ƒ๐”ผ๐•‹๐•Š ๐•Š๐•‹๐”ธโ„๐•‹ :

1) Installing the system, Debian Squeeze (x86). Next, we perform all actions from under root.

2) After installation, configure the network by configuring the / etc / network / interfaces file.

3) Install mc: aptitude install โ€“y mc

4) We install the packages necessary for the normal functioning of asterisk: aptitude install โ€“y flex, bison, g ++, libncurses5-dev, doxogen, unixodbc, build-essential, libxml2-dev, libsqlite3-dev, kernel-package, linux-headers-2.6.32- 5-686

5) Download from sourceforge raw pwlib-1.10.0.tar.gz and openh323-1.18.0.tar.gz, from asterisk.org - asterisk-1.8.5.0.tar.gz, from asterisk.ru - libpri-1.4.12. tar.gz, dahdi-linux-complete-2.5.0 + 2.5.0.tar.gz and codecs g723 / g729 - codec_g723-ast18-gcc4-glibc-core2.so and codec_g729-ast18-gcc4-glibc-core2.so and drop it all into the / usr / src / folder (codecs can be downloaded here: http://asterisk.lv/codecs )

6) Create a link: ln โ€“s /usr/src/linux-headers-2.6.32-5-common/include/linux/compiler.h /usr/include/linux/compiler.h

7) Build pwlib:
Unpack pwlib-1.10.0.tar.gz: tar โ€“zxvf pwlib-1.10.0.tar.gz

8) n go to the resulting folder: cd / usr / src / pwlib_v1_10_0
Run ./configure, then make clean opt and finally make install

9) Build openh323:
> Unpack openh323-1.18.0.tar.gz: tar โ€“zxvf openh323-1.18.0.tar.gz

10) We go to the resulting folder: cd / usr / src / openh323_v1_18_0

11) We write: export PWLIBDIR = / usr / src / pwlib_v1_10_0

12) Run ./configure, then make clean opt and finally make install
Build and install libpri:

13) Unpack libpri-1.4.12.tar.gz: tar โ€“zxvf libpri-1.4.12.tar.gz

14) Go to the resulting folder: cd /usr/src/libpri-1.4.12
Perform make and make install

15 )Build and install dahdi-linux:
Unpack dahdi-linux-complete-2.6.0.tar.gz: tar โ€“zxvf dahdi-linux-complete-2.6.0

16) Go to the resulting folder: cd / usr / src / dahdi-linux-complete-2.6.0
Successively execute: make all, make install, make config

17) put asterisk. Unpack asterisk-1.8.5.0.tar.gz: tar โ€“zxvf asterisk-1.8.5.0.tar.gz, then go to /usr/src/asterisk-1.8.5.0/main
To prevent DTMF distortion during a callback from asterisk, open the dsp.c file for editing, find the line โ€œstatic const float dtmf_rowโ€ and โ€œstatic const float dtmf_colโ€ there and bring them to the following form:


Written by Undercode
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘ Part 2 configure Asterisk on android:
fb.com/UndercOdeTestingCompany

๐Ÿฆ‘ ๐•ƒ๐”ผ๐•‹๐•Š ๐•Š๐•‹๐”ธโ„๐•‹ :

static const float dtmf_row [] =


732.0, 809.0, 894.0, 988.0

/ * 697.0, 770.0, 852.0, 941.0 * /


static const float dtmf_col [] =

{

1270.0, 1404.0, 1551.0, 1715.0

/ * 1209.0, 1336.0, 1477.0, 1633.0 * /


Go back to /usr/src/asterisk-1.8.5.0 and start building asterisk. We write:
export PWLIBDIR = / usr / src / pwlib_v1_10_0

and

export OPENH323DIR = / usr / src / openh323_v1_18_0

๐Ÿฆ‘ Then do ./configure, make menuselect (if necessary, you can also select the ooh323 protocol there), make and make install
At the end of the compiler, run make samples and make config. You can optionally run make progdocs.

> Now go into / usr / lib / asterisk / modules and copy the codec_g723-ast18-gcc4-glibc-core2.so and codec_g729-ast18-gcc4-glibc-core2.so files there with renaming them to codec_g723.so and codec_g729.so respectively. It all depends on the version of the C compiler (gcc or something else) and the processor model. In this example, the C compiler version is gcc4, and the processor model is Intel Core 2 Duo.

> Next, go to / etc / asterisk, open the codecs.conf file for editing, disable vbr (vbr => false) and vad (vad => false), add a section at the end of the file to enable support for 723 codecs:

; 6.3 Kbps stream default


; 5.3 Kbps stream default

; sendrate = 53

๐Ÿฆ‘ Now asterisk is ready, you can run it with the asterisk command, you can connect to the asterisk console with the command asterisk

WRITTEN BY UNDERCODE
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
T.me/UndercOdeTesting

# SUPPORT & SHARE
๐Ÿฆ‘ WHATSAPP SERVER IS GOING DOWN AGAIN IN WorldWide :
Error Starting on 19/1
Ending on
20/1/2020


# ERROR DESCRIPTION : NO VOICE NO CALLS NO PICTURES
Whatsapp now in maintenance services, New security patches will come soon
> Vpn not help

> deleting your whatsapp risking lost your number for 1 day (no verify option)

> If you have any old banned number
Send to whatsapp Now Mail :
@Support.whatsapp.com

Then you gain a high risk for Unblocking Your number
Whatsapp problems success now with tempory fix
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘Terminal File Manager (Android-Termux) Topic 2020
t.me/UndercOdeTesting

๐Ÿฆ‘๐•€โ„•๐•Š๐•‹๐”ธ๐•ƒ๐•ƒ๐•€๐•Š๐”ธ๐•‹๐•€๐•†โ„• & โ„๐•Œโ„•:


1) Install the utilities you may need based on your regular workflows.
> https://github.com/jarun/nnn#utility-dependencies

2) Configure cd on quit.
>https://github.com/jarun/nnn/wiki/Basic-use-cases#configure-cd-on-quit

3) To open text files in $VISUAL (else $EDITOR, fallback vi) add program option -e in your alias.

4) For additional functionality install plugins.
>https://github.com/jarun/nnn/tree/master/plugins#installing-plugins

5) To copy selected file paths to system clipboard and show notis on cp, mv, rm completion use option -x.

6) For a strictly CLI environment, customize and use plugin nuke.
> https://github.com/jarun/nnn/blob/master/plugins/nuke

๐Ÿฆ‘fOR UBANTO :

1) Download the latest stable release or clone this repository (risky), install deps and compile. On Ubuntu 18.04:

$ sudo apt-get install pkg-config libncursesw5-dev libreadline-dev
$ sudo make strip install

2) To compile without libreadline:

$ sudo apt-get install pkg-config libncursesw5-dev
$ sudo make O_NORL=1 strip install

PREFIX is supported, in case you want to install to a different location.

WRITTEN BY UNDERCODE
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–

๐Ÿฆ‘WMI .NET COM
Let's look at the beginning of the list of WMI classes to understand what you can work with by UndercOde :
T.me/UndercOdeTesting

๐Ÿฆ‘๐•€โ„•๐•Š๐•‹๐”ธ๐•ƒ๐•ƒ๐•€๐•Š๐”ธ๐•‹๐•€๐•†โ„• & โ„๐•Œโ„•:

1) PS C: Windowssystem32> Get-WmiObject -list

> For example, let's choose a class like win32_OperatingSystem:

> PS C: Windowssystem32> Get-WmiObject win32_operatingSystem

2) SystemDirectory: C: Windowssystem32


3) Now let's see what's under the hood of this class (the output is shortened):

4) PS C: Windowssystem32> Get-WmiObject win32_operatingSystem | Get-member

5) TypeName: System.Management.ManagementObject # rootcimv2Win32_OperatingSystem

๐Ÿฆ‘ Example Name MemberType Definition
โ€”- โ€”โ€”โ€”โ€”- โ€”โ€”โ€”-
Reboot Method System.Management.ManagementBaseObject Reboot ()
SetDateTime Method System.Management.ManagementBaseObject SetDateTime (System.St
Shutdown Method System.Management.ManagementBaseObject Shutdown ()
Win32Shutdown Method System.Management.ManagementBaseObject Win32Shutdown (System.
Win32ShutdownTracker Method System.Management.ManagementBaseObject Win32ShutdownTracker (
BootDevice Property System.String BootDevice {get; set;}
BuildNumber Property System.String BuildNumber {get; set;}
BuildType Property System.String BuildType {get; set;}
Caption Property System.String Caption {get; set;}
CodeSet Property System.String CodeSet {get; set;}

๐Ÿฆ‘ And output some property:

PS C: Windowssystem32> Get-WmiObject win32_operatingSystem | Format-List -property BuildType

BuildType: Multiprocessor Free

For starters, everything is very clear and simple. Move on:
For example, you can rename the computer in this way ...

(Get-Wmiobject -Class win32_computersystem -ComputerName job) .Rename ("home")

> The Rename () method I watched from the output (Get-Wmiobject -Class win32_computersystem -ComputerName job) | Get-member


> WSH objects can be created by defining the following program identifiers: WScript.Shell , WScript.Network , Scripting.Dictionary, and Scripting.FileSystemObject .

๐Ÿฆ‘ These objects are created by the following commands:

New-Object -ComObject WScript.Shell New-Object -ComObject WScript.Network
For example, connect a network printer:
PS C: Windowssystem32> $ wshell = New-Object -comobject wscript.network
PS C: Windowssystem32> $ wshell | Get-member

TypeName: System .__ ComObject # {24be5a31-edfe-11d2-b933-00104b365c9f}

Name MemberType Definition

AddPrinterConnection Method void AddPrinterConnection (string, string, Variant, Variant, Variant)
AddWindowsPrinterConnection Method void AddWindowsPrinterConnection (string, string, string)
EnumNetworkDrives Method IWshCollection EnumNetworkDrives ()
EnumPrinterConnections Method IWshCollection EnumPrinterConnections ()
MapNetworkDrive Method void MapNetworkDrive (string, string, Variant, Variant, Variant)
RemoveNetworkDrive Method void RemoveNetworkDrive (string, Variant, Variant)
RemovePrinterConnection Method void RemovePrinterConnection (string, Variant, Variant)
SetDefaultPrinter Method void SetDefaultPrinter (string)
ComputerName Property string ComputerName () {get}
Organization Property string Organization () {get}
Site Property string Site () {get}
PS C: Windowssystem32> $ wshell.AddWindowsPrinterConnection ("\ serverHP LaserJet M5035 MFP PCL 6")

WRITTEN BY UNDERCODE
โ– โ–‚ โ–„ ๏ฝ•๐•Ÿ๐”ปโ’บ๐ซฤ†๐”ฌ๐““โ“” โ–„ โ–‚ โ–